summaryrefslogtreecommitdiffstats
path: root/tools/editor/plugins/sample_library_editor_plugin.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-14 00:51:09 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-14 00:51:09 -0300
commitd9d77291bca8dd1e87aa4d9e40de96d99e5ef1f6 (patch)
treef5c92321612fdd5f8967c349898d3475b52bf930 /tools/editor/plugins/sample_library_editor_plugin.cpp
parentf3b6177ece8a06e52870ed422cbcc67276606e5a (diff)
downloadredot-engine-d9d77291bca8dd1e87aa4d9e40de96d99e5ef1f6.tar.gz
rename String.extension() -> String.get_extension() / String.basename() -> String.get_basename()
Diffstat (limited to 'tools/editor/plugins/sample_library_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/sample_library_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/plugins/sample_library_editor_plugin.cpp b/tools/editor/plugins/sample_library_editor_plugin.cpp
index e470d0d2c2..28a44d99f1 100644
--- a/tools/editor/plugins/sample_library_editor_plugin.cpp
+++ b/tools/editor/plugins/sample_library_editor_plugin.cpp
@@ -81,7 +81,7 @@ void SampleLibraryEditor::_file_load_request(const PoolVector<String>& p_path) {
dialog->popup_centered_minsize();
return; ///beh should show an error i guess
}
- String basename = path.get_file().basename();
+ String basename = path.get_file().get_basename();
String name=basename;
int counter=0;
while(sample_library->has_sample(name)) {
@@ -376,7 +376,7 @@ void SampleLibraryEditor::drop_data_fw(const Point2& p_point,const Variant& p_da
if (sample->get_name()!="") {
basename=sample->get_name();
} else if (sample->get_path().is_resource_file()) {
- basename = sample->get_path().basename();
+ basename = sample->get_path().get_basename();
} else {
basename="Sample";
}