Initialize with = instead of braces, and drop const from local autos
Scalars get = 0, = false or = nullptr. Standard containers and strings rely on their constructors.
Other types get = {} or = value, and lists keep = {...}.
glm types are left alone until they're replaced.
This commit is contained in:
1 parent
666f65bf3a
commit
40f6b554b5
138 files changed
+1500
-1500
No files matched your search
+22
-22
@@ -20,40 +20,40 @@
|
||||
{
|
||||
struct PendingSave
|
||||
{
|
||||
int index{-1};
|
||||
std::filesystem::path path{};
|
||||
bool isQueued{};
|
||||
int index = -1;
|
||||
std::filesystem::path path;
|
||||
bool isQueued = false;
|
||||
};
|
||||
|
||||
ChangeAllFrameProperties changeAllFrameProperties{};
|
||||
About about{};
|
||||
Configure configure{};
|
||||
GenerateAnimationFromGrid generateAnimationFromGrid{};
|
||||
RenderAnimation renderAnimation{};
|
||||
ChangeAllFrameProperties changeAllFrameProperties = {};
|
||||
About about = {};
|
||||
Configure configure = {};
|
||||
GenerateAnimationFromGrid generateAnimationFromGrid = {};
|
||||
RenderAnimation renderAnimation = {};
|
||||
|
||||
Canvas generate;
|
||||
PopupHelper generatePopup{PopupHelper(LABEL_TASKBAR_GENERATE_ANIMATION_FROM_GRID)};
|
||||
PopupHelper generatePopup = PopupHelper(LABEL_TASKBAR_GENERATE_ANIMATION_FROM_GRID);
|
||||
PopupHelper generateRegionsPopup{
|
||||
PopupHelper(LABEL_TASKBAR_GENERATE_REGIONS_FROM_ANIMATIONS, POPUP_SMALL_NO_HEIGHT)};
|
||||
PopupHelper changePopup{PopupHelper(LABEL_CHANGE_ALL_FRAME_PROPERTIES, POPUP_NORMAL_NO_HEIGHT)};
|
||||
PopupHelper overwritePopup{PopupHelper(LABEL_TASKBAR_OVERWRITE_FILE, POPUP_SMALL_NO_HEIGHT)};
|
||||
PopupHelper isaacPopup{PopupHelper(LABEL_ISAAC_COMPATIBILITY_WARNING, POPUP_SMALL_NO_HEIGHT)};
|
||||
PendingSave isaacSave{};
|
||||
PopupHelper vectorPopup{PopupHelper(LABEL_CONVERT_SVG_POPUP, POPUP_SMALL_NO_HEIGHT)};
|
||||
PopupHelper renderPopup{PopupHelper(LABEL_TASKBAR_RENDER_ANIMATION, POPUP_SMALL_NO_HEIGHT)};
|
||||
PopupHelper configurePopup{PopupHelper(LABEL_TASKBAR_CONFIGURE)};
|
||||
PopupHelper aboutPopup{PopupHelper(LABEL_TASKBAR_ABOUT)};
|
||||
Settings editSettings{};
|
||||
int generateRegionsTarget{};
|
||||
bool isGenerateRegionsMapFrames{true};
|
||||
bool isQuittingMode{};
|
||||
PopupHelper changePopup = PopupHelper(LABEL_CHANGE_ALL_FRAME_PROPERTIES, POPUP_NORMAL_NO_HEIGHT);
|
||||
PopupHelper overwritePopup = PopupHelper(LABEL_TASKBAR_OVERWRITE_FILE, POPUP_SMALL_NO_HEIGHT);
|
||||
PopupHelper isaacPopup = PopupHelper(LABEL_ISAAC_COMPATIBILITY_WARNING, POPUP_SMALL_NO_HEIGHT);
|
||||
PendingSave isaacSave = {};
|
||||
PopupHelper vectorPopup = PopupHelper(LABEL_CONVERT_SVG_POPUP, POPUP_SMALL_NO_HEIGHT);
|
||||
PopupHelper renderPopup = PopupHelper(LABEL_TASKBAR_RENDER_ANIMATION, POPUP_SMALL_NO_HEIGHT);
|
||||
PopupHelper configurePopup = PopupHelper(LABEL_TASKBAR_CONFIGURE);
|
||||
PopupHelper aboutPopup = PopupHelper(LABEL_TASKBAR_ABOUT);
|
||||
Settings editSettings = {};
|
||||
int generateRegionsTarget = 0;
|
||||
bool isGenerateRegionsMapFrames = true;
|
||||
bool isQuittingMode = false;
|
||||
|
||||
bool save_execute(Manager&, const PendingSave&);
|
||||
void save_enqueue(Manager&, const PendingSave&);
|
||||
bool save_request(Manager&, Settings&, int = -1, const std::filesystem::path& = {}, bool = false);
|
||||
|
||||
public:
|
||||
float height{};
|
||||
float height = 0;
|
||||
|
||||
void update(Manager&, Settings&, Resources&, Dialog&, bool&);
|
||||
bool save_manual(Manager&, Settings&, int = -1, const std::filesystem::path& = {});
|
||||
|
||||
Reference in new issue
Block a user