summaryrefslogtreecommitdiffstats
path: root/src/ui/studio.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2013-05-26 17:45:15 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2013-05-27 10:19:04 +0200
commit538745a731d07facd7a1574c04a5d34d23ce3bfa (patch)
tree4c3cee3371c06faf7b78dcf859da3cc5cf8ac242 /src/ui/studio.cpp
parent1a3aa0d60f85a10b24fffcdeadf2dff859699409 (diff)
downloadcolobot-538745a731d07facd7a1574c04a5d34d23ce3bfa.tar.gz
colobot-538745a731d07facd7a1574c04a5d34d23ce3bfa.tar.bz2
colobot-538745a731d07facd7a1574c04a5d34d23ce3bfa.zip
Fixed some compilation warnings
* fixed warnings about hiding virtual functions and several others
Diffstat (limited to 'src/ui/studio.cpp')
-rw-r--r--src/ui/studio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/studio.cpp b/src/ui/studio.cpp
index 52a0ddc..5027924 100644
--- a/src/ui/studio.cpp
+++ b/src/ui/studio.cpp
@@ -1397,7 +1397,7 @@ void CStudio::UpdateChangeList()
pe = static_cast< CEdit* >(pw->SearchControl(EVENT_DIALOG_EDIT));
if ( pe == nullptr ) return;
- strcpy(name, pl->GetName(pl->GetSelect()));
+ strcpy(name, pl->GetItemName(pl->GetSelect()));
name[pe->GetMaxChar()] = 0; // truncates according lg max editable
p = strchr(name, '\t'); // seeks first tab
if ( p != 0 ) *p = 0;
@@ -1526,7 +1526,7 @@ void CStudio::UpdateDialogList()
std::ostringstream temp;
TimeToAscii(fs::last_write_time(file->path()), time);
temp << file->path().filename().string() << '\t' << fs::file_size(file->path()) << " \t" << time;
- pl->SetName(i++, temp.str().c_str());
+ pl->SetItemName(i++, temp.str().c_str());
}
}
}