diff options
author | Rod Smith <rodsmith@rodsbooks.com> | 2022-04-10 09:28:08 -0400 |
---|---|---|
committer | Rod Smith <rodsmith@rodsbooks.com> | 2022-04-10 09:28:08 -0400 |
commit | edc67b66dbd09bf9a905bb5f1eddd1c19c2df294 (patch) | |
tree | 0676771891810a7e386d48e62b81470f80fe1c80 /gptcurses.h | |
parent | fd60f743628e16180daf3b1719974fa4dadf8f90 (diff) | |
download | sgdisk-edc67b66dbd09bf9a905bb5f1eddd1c19c2df294.tar.gz |
Patch set from Bin Meng to clean up some code & support building sgdisk for Windows
Diffstat (limited to 'gptcurses.h')
-rw-r--r-- | gptcurses.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gptcurses.h b/gptcurses.h index a080987..8d2ecaf 100644 --- a/gptcurses.h +++ b/gptcurses.h @@ -27,12 +27,10 @@ #include "gptpart.h" #include "gpt.h" -using namespace std; - struct MenuItem { int key; // Keyboard shortcut - string name; // Item name; 8 characters - string desc; // Description + std::string name; // Item name; 8 characters + std::string desc; // Description }; static struct MenuItem menuMain[] = { @@ -81,7 +79,7 @@ protected: Space *lastSpace; Space *currentSpace; int currentSpaceNum; - string whichOptions; + std::string whichOptions; char currentKey; int numSpaces; int displayType; @@ -130,7 +128,7 @@ public: void ClearLine(int lineNum); void ClearBottom(void); void PromptToContinue(void); -void Report(string theText); +void Report(std::string theText); void ShowTypes(void); #endif |