diff options
author | Tushar Maheshwari <tushar27192@gmail.com> | 2019-09-22 01:54:57 (GMT) |
---|---|---|
committer | Tushar Maheshwari <tushar27192@gmail.com> | 2019-09-27 11:48:16 (GMT) |
commit | 7d6e08b438a187e89735ae6aad749a14137f34be (patch) | |
tree | a341c647a62c9f8775846bcaecb50773905457e0 /Source/CursesDialog/cmCursesMainForm.h | |
parent | 0833486d62e8ed3ae9f0219f9924c4e78d74f781 (diff) | |
download | CMake-7d6e08b438a187e89735ae6aad749a14137f34be.zip CMake-7d6e08b438a187e89735ae6aad749a14137f34be.tar.gz CMake-7d6e08b438a187e89735ae6aad749a14137f34be.tar.bz2 |
cmCursesMainForm: change Entries to object vector
- Add move constructor and move assignment operator for
`cmCursesCacheEntryComposite`.
- Transfer ownership of Entries objects to std::vector.
Diffstat (limited to 'Source/CursesDialog/cmCursesMainForm.h')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.h b/Source/CursesDialog/cmCursesMainForm.h index 9a83c30..48d1791 100644 --- a/Source/CursesDialog/cmCursesMainForm.h +++ b/Source/CursesDialog/cmCursesMainForm.h @@ -5,6 +5,7 @@ #include "cmConfigure.h" // IWYU pragma: keep +#include "cmCursesCacheEntryComposite.h" #include "cmCursesForm.h" #include "cmCursesStandardIncludes.h" #include "cmStateTypes.h" @@ -14,7 +15,6 @@ #include <string> #include <vector> -class cmCursesCacheEntryComposite; class cmake; /** \class cmCursesMainForm @@ -123,7 +123,7 @@ protected: void JumpToCacheEntry(const char* str); // Copies of cache entries stored in the user interface - std::vector<std::unique_ptr<cmCursesCacheEntryComposite>> Entries; + std::vector<cmCursesCacheEntryComposite> Entries; // Errors produced during last run of cmake std::vector<std::string> Errors; // Command line arguments to be passed to cmake each time |