diff options
author | Einar Johan Trøan Sømåen | 2012-05-11 15:05:03 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-02 12:59:18 +0200 |
commit | ded3c2a4b47a34c93c8129c58feedf2bcecd848b (patch) | |
tree | 114582997da4adb2dab33ab3f42528cd16bd74f0 /engines/wintermute/UIWindow.cpp | |
parent | 61945782d6a73967d122f38a4f97f9b7377abdea (diff) | |
download | scummvm-rg350-ded3c2a4b47a34c93c8129c58feedf2bcecd848b.tar.gz scummvm-rg350-ded3c2a4b47a34c93c8129c58feedf2bcecd848b.tar.bz2 scummvm-rg350-ded3c2a4b47a34c93c8129c58feedf2bcecd848b.zip |
WINTERMUTE: Add const to even more char-pointers.
Diffstat (limited to 'engines/wintermute/UIWindow.cpp')
-rw-r--r-- | engines/wintermute/UIWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/UIWindow.cpp b/engines/wintermute/UIWindow.cpp index e450ae7c0d..f70da3cb1e 100644 --- a/engines/wintermute/UIWindow.cpp +++ b/engines/wintermute/UIWindow.cpp @@ -668,7 +668,7 @@ HRESULT CUIWindow::SaveAsText(CBDynBuffer *Buffer, int Indent) { }
//////////////////////////////////////////////////////////////////////////
-HRESULT CUIWindow::EnableWidget(char *Name, bool Enable) {
+HRESULT CUIWindow::EnableWidget(const char *Name, bool Enable) {
for (int i = 0; i < _widgets.GetSize(); i++) {
if (scumm_stricmp(_widgets[i]->_name, Name) == 0) _widgets[i]->_disable = !Enable;
}
@@ -677,7 +677,7 @@ HRESULT CUIWindow::EnableWidget(char *Name, bool Enable) { //////////////////////////////////////////////////////////////////////////
-HRESULT CUIWindow::ShowWidget(char *Name, bool Visible) {
+HRESULT CUIWindow::ShowWidget(const char *Name, bool Visible) {
for (int i = 0; i < _widgets.GetSize(); i++) {
if (scumm_stricmp(_widgets[i]->_name, Name) == 0) _widgets[i]->_visible = Visible;
}
|