Style: apply clang-format (3.9.1) to current source
This commit is contained in:
parent
b3a1821b46
commit
acb7107720
@ -464,8 +464,7 @@ void DependencyRemoveDialog::ok_pressed() {
|
||||
|
||||
DirAccess *da = DirAccess::create(DirAccess::ACCESS_RESOURCES);
|
||||
for (Map<String, TreeItem *>::Element *E = files.front(); E; E = E->next()) {
|
||||
if (da->dir_exists(E->key()))
|
||||
{
|
||||
if (da->dir_exists(E->key())) {
|
||||
String path = OS::get_singleton()->get_resource_dir() + E->key().replace_first("res://", "/");
|
||||
OS::get_singleton()->move_path_to_trash(path);
|
||||
EditorFileSystem::get_singleton()->scan();
|
||||
|
@ -80,10 +80,12 @@ class DependencyEditorOwners : public AcceptDialog {
|
||||
void _list_rmb_select(int p_item, const Vector2 &p_pos);
|
||||
void _select_file(int p_idx);
|
||||
void _file_option(int p_option);
|
||||
|
||||
private:
|
||||
enum FileMenu {
|
||||
FILE_OPEN
|
||||
};
|
||||
|
||||
public:
|
||||
void show(const String &p_path);
|
||||
DependencyEditorOwners(EditorNode *p_editor);
|
||||
|
@ -45,7 +45,8 @@ void GDScriptLanguage::get_string_delimiters(List<String> *p_delimiters) const {
|
||||
}
|
||||
String GDScriptLanguage::get_template(const String &p_class_name, const String &p_base_class_name) const {
|
||||
|
||||
String _template = String() +
|
||||
String _template =
|
||||
String() +
|
||||
"extends %BASE%\n\n" +
|
||||
"# class member variables go here, for example:\n" +
|
||||
"# var a = 2\n" +
|
||||
@ -60,15 +61,15 @@ String GDScriptLanguage::get_template(const String &p_class_name, const String &
|
||||
|
||||
String GDScriptLanguage::get_empty_template(const String &p_class_name, const String &p_base_class_name) const {
|
||||
|
||||
String _template = String() +
|
||||
"extends %BASE%\n\n";
|
||||
String _template = String() + "extends %BASE%\n\n";
|
||||
|
||||
return _template.replace("%BASE%", p_base_class_name);
|
||||
}
|
||||
|
||||
String GDScriptLanguage::get_nocomment_template(const String &p_class_name, const String &p_base_class_name) const {
|
||||
|
||||
String _template = String() +
|
||||
String _template =
|
||||
String() +
|
||||
"extends %BASE%\n\n" +
|
||||
"func _ready():\n" +
|
||||
"\tpass\n";
|
||||
|
@ -2139,8 +2139,7 @@ void GDParser::_parse_extends(ClassNode *p_class) {
|
||||
|
||||
StringName identifier = tokenizer->get_token_identifier();
|
||||
p_class->extends_class.push_back(identifier);
|
||||
}
|
||||
break;
|
||||
} break;
|
||||
|
||||
case GDTokenizer::TK_PERIOD:
|
||||
break;
|
||||
|
@ -633,7 +633,6 @@ Error EditorExportPlatformOSX::export_project(const String &p_path, bool p_debug
|
||||
} else {
|
||||
err = ERR_CANT_OPEN;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user