aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/ad/ad_response_box.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-26 19:41:18 +0200
committerEinar Johan Trøan Sømåen2012-07-26 19:41:18 +0200
commit4eda234611bd77f053defe9e61d592b308270eaa (patch)
treecb0a437641b74b60b325ac9ccaa9b63dacab897d /engines/wintermute/ad/ad_response_box.cpp
parenteb22e36d5e12b64442ce23c656227483dd9cf61e (diff)
downloadscummvm-rg350-4eda234611bd77f053defe9e61d592b308270eaa.tar.gz
scummvm-rg350-4eda234611bd77f053defe9e61d592b308270eaa.tar.bz2
scummvm-rg350-4eda234611bd77f053defe9e61d592b308270eaa.zip
WINTERMUTE: Replace BaseArray with a templated subclass of Common::Array.
This needs additional cleanup, but compiles and runs at this point.
Diffstat (limited to 'engines/wintermute/ad/ad_response_box.cpp')
-rw-r--r--engines/wintermute/ad/ad_response_box.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/wintermute/ad/ad_response_box.cpp b/engines/wintermute/ad/ad_response_box.cpp
index fe37002abb..c566120405 100644
--- a/engines/wintermute/ad/ad_response_box.cpp
+++ b/engines/wintermute/ad/ad_response_box.cpp
@@ -100,7 +100,7 @@ void AdResponseBox::clearResponses() {
for (int i = 0; i < _responses.getSize(); i++) {
delete _responses[i];
}
- _responses.removeAll();
+ _responses.clear();
}
@@ -109,7 +109,7 @@ void AdResponseBox::clearButtons() {
for (int i = 0; i < _respButtons.getSize(); i++) {
delete _respButtons[i];
}
- _respButtons.removeAll();
+ _respButtons.clear();
}
@@ -597,7 +597,7 @@ bool AdResponseBox::weedResponses() {
case RESPONSE_ONCE:
if (adGame->branchResponseUsed(_responses[i]->_iD)) {
delete _responses[i];
- _responses.removeAt(i);
+ _responses.remove_at(i);
i--;
}
break;
@@ -605,7 +605,7 @@ bool AdResponseBox::weedResponses() {
case RESPONSE_ONCE_GAME:
if (adGame->gameResponseUsed(_responses[i]->_iD)) {
delete _responses[i];
- _responses.removeAt(i);
+ _responses.remove_at(i);
i--;
}
break;
@@ -649,7 +649,7 @@ bool AdResponseBox::handleResponse(AdResponse *response) {
//////////////////////////////////////////////////////////////////////////
BaseObject *AdResponseBox::getNextAccessObject(BaseObject *currObject) {
- BaseArray<UIObject *, UIObject *> objects;
+ BaseArray<UIObject *> objects;
getObjects(objects, true);
if (objects.getSize() == 0) {
@@ -673,7 +673,7 @@ BaseObject *AdResponseBox::getNextAccessObject(BaseObject *currObject) {
//////////////////////////////////////////////////////////////////////////
BaseObject *AdResponseBox::getPrevAccessObject(BaseObject *currObject) {
- BaseArray<UIObject *, UIObject *> objects;
+ BaseArray<UIObject *> objects;
getObjects(objects, true);
if (objects.getSize() == 0) {
@@ -696,7 +696,7 @@ BaseObject *AdResponseBox::getPrevAccessObject(BaseObject *currObject) {
}
//////////////////////////////////////////////////////////////////////////
-bool AdResponseBox::getObjects(BaseArray<UIObject *, UIObject *> &objects, bool interactiveOnly) {
+bool AdResponseBox::getObjects(BaseArray<UIObject *> &objects, bool interactiveOnly) {
for (int i = 0; i < _respButtons.getSize(); i++) {
objects.add(_respButtons[i]);
}