cmCursesStringWidget: remove manual delete

- Relpace `char*` operations with `std::string`
This commit is contained in:
Tushar Maheshwari
2019-09-21 19:47:23 +05:30
parent bc71b253cb
commit 0833486d62
2 changed files with 13 additions and 24 deletions

View File

@@ -23,9 +23,6 @@ class cmCursesStringWidget : public cmCursesWidget
public:
cmCursesStringWidget(int width, int height, int left, int top);
cmCursesStringWidget(cmCursesStringWidget const&) = delete;
cmCursesStringWidget& operator=(cmCursesStringWidget const&) = delete;
/**
* Handle user input. Called by the container of this widget
* when this widget has focus. Returns true if the input was
@@ -65,7 +62,7 @@ public:
protected:
// true if the widget is in edit mode
bool InEdit;
char* OriginalString;
std::string OriginalString;
bool Done;
};