Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4.
This commit is contained in:
@ -41,7 +41,7 @@
|
||||
#include "editor/editor_settings.h"
|
||||
|
||||
bool EditorResourcePreviewGenerator::handles(const String &p_type) const {
|
||||
bool success;
|
||||
bool success = false;
|
||||
if (GDVIRTUAL_CALL(_handles, p_type, success)) {
|
||||
return success;
|
||||
}
|
||||
@ -70,7 +70,7 @@ Ref<Texture2D> EditorResourcePreviewGenerator::generate_from_path(const String &
|
||||
}
|
||||
|
||||
bool EditorResourcePreviewGenerator::generate_small_preview_automatically() const {
|
||||
bool success;
|
||||
bool success = false;
|
||||
if (GDVIRTUAL_CALL(_generate_small_preview_automatically, success)) {
|
||||
return success;
|
||||
}
|
||||
@ -79,7 +79,7 @@ bool EditorResourcePreviewGenerator::generate_small_preview_automatically() cons
|
||||
}
|
||||
|
||||
bool EditorResourcePreviewGenerator::can_generate_small_preview() const {
|
||||
bool success;
|
||||
bool success = false;
|
||||
if (GDVIRTUAL_CALL(_can_generate_small_preview, success)) {
|
||||
return success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user