summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesOptionsWidget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-12 14:42:38 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-03-12 14:42:38 (GMT)
commitcb8f87f6229359790956a6640639bbe6b8c346f7 (patch)
tree3501cbf4a528b475b8da15b88e0b14879bddd4c2 /Source/CursesDialog/cmCursesOptionsWidget.cxx
parent9defc45f78d4fe10928fd0a94ffa97fc80f5da56 (diff)
parent3be265b304da0879c79e2fcdfff6f25b1a4e87c1 (diff)
downloadCMake-cb8f87f6229359790956a6640639bbe6b8c346f7.zip
CMake-cb8f87f6229359790956a6640639bbe6b8c346f7.tar.gz
CMake-cb8f87f6229359790956a6640639bbe6b8c346f7.tar.bz2
Merge topic 'remove-c_str-calls'
3be265b3 Workaround Sun C++ 5.9 compiler crash af8a1643 Remove c_str calls when using stream APIs. 21c573f6 Remove some c_str() calls.
Diffstat (limited to 'Source/CursesDialog/cmCursesOptionsWidget.cxx')
-rw-r--r--Source/CursesDialog/cmCursesOptionsWidget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CursesDialog/cmCursesOptionsWidget.cxx b/Source/CursesDialog/cmCursesOptionsWidget.cxx
index aa680fb..d76ba2a 100644
--- a/Source/CursesDialog/cmCursesOptionsWidget.cxx
+++ b/Source/CursesDialog/cmCursesOptionsWidget.cxx
@@ -74,7 +74,7 @@ void cmCursesOptionsWidget::NextOption()
{
this->CurrentOption = 0;
}
- this->SetValue(this->Options[this->CurrentOption].c_str());
+ this->SetValue(this->Options[this->CurrentOption]);
}
void cmCursesOptionsWidget::PreviousOption()
{
@@ -86,7 +86,7 @@ void cmCursesOptionsWidget::PreviousOption()
{
this->CurrentOption--;
}
- this->SetValue(this->Options[this->CurrentOption].c_str());
+ this->SetValue(this->Options[this->CurrentOption]);
}
void cmCursesOptionsWidget::SetOption(const std::string& value)