diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2001-12-06 22:40:25 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2001-12-06 22:40:25 (GMT) |
commit | b689b4b5fab0c580f98ee2fdbcc35bc5ad20564a (patch) | |
tree | bc1bdc057c17fba6bc09c0210ab733a1193c987a /Source/CursesDialog | |
parent | 26ecd7731d5d3c336c1a001549f1aa541d7d6a15 (diff) | |
download | CMake-b689b4b5fab0c580f98ee2fdbcc35bc5ad20564a.zip CMake-b689b4b5fab0c580f98ee2fdbcc35bc5ad20564a.tar.gz CMake-b689b4b5fab0c580f98ee2fdbcc35bc5ad20564a.tar.bz2 |
Fix bug with string
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 7270161..38ab65e 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -520,7 +520,7 @@ void cmCursesMainForm::FillCacheManagerFromUI() tmpString = (*m_Entries)[i]->m_Entry->GetValue(); // Remove trailing spaces, convert path to unix slashes - string tmpSubString = + std::string tmpSubString = tmpString.substr(0,tmpString.find_last_not_of(" ")+1); if ( entry->m_Type == cmCacheManager::PATH || entry->m_Type == cmCacheManager::FILEPATH ) |