Skip to content

C++14 initialization #31

@sonoro1234

Description

@sonoro1234
diff --git a/cwrappers/ImGuiColorTextEdit/TextEditor.h b/cwrappers/ImGuiColorTextEdit/TextEditor.h
index 923d2dc5..5a03d9ca 100644
--- a/cwrappers/ImGuiColorTextEdit/TextEditor.h
+++ b/cwrappers/ImGuiColorTextEdit/TextEditor.h
@@ -239,7 +239,7 @@ private:
        {
                int mCurrentCursor = 0;
                int mLastAddedCursor = 0;
-               std::vector<Cursor> mCursors = { {{0,0}} };
+               std::vector<Cursor> mCursors = { Cursor{} };
                void AddCursor();
                int GetLastAddedCursorIndex();
                void SortCursorsFromTopToBottom();

Is needed to compile with c++11 (imgui default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions