diff options
author | Einar Johan Trøan Sømåen | 2012-08-31 16:55:17 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-08-31 16:55:17 +0200 |
commit | 3dc5d32e8547c0bbccbb20d6a84ca5307d29ca5e (patch) | |
tree | 9dabd78d3592ff4191ce645d08f500df44e1f889 /engines/wintermute/ad | |
parent | 71981aaecf68b6a0910a18cad67cbba9ac7a1fb1 (diff) | |
download | scummvm-rg350-3dc5d32e8547c0bbccbb20d6a84ca5307d29ca5e.tar.gz scummvm-rg350-3dc5d32e8547c0bbccbb20d6a84ca5307d29ca5e.tar.bz2 scummvm-rg350-3dc5d32e8547c0bbccbb20d6a84ca5307d29ca5e.zip |
WINTERMUTE: Replace qsort with Common::sort
Diffstat (limited to 'engines/wintermute/ad')
-rw-r--r-- | engines/wintermute/ad/ad_scene.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/ad/ad_scene.cpp b/engines/wintermute/ad/ad_scene.cpp index 1e5754a778..b04f48f1fc 100644 --- a/engines/wintermute/ad/ad_scene.cpp +++ b/engines/wintermute/ad/ad_scene.cpp @@ -1164,7 +1164,7 @@ bool AdScene::displayRegionContent(AdRegion *region, bool display3DOnly) { }
// sort by _posY
- qsort(objects.getData(), objects.getSize(), sizeof(AdObject *), AdScene::compareObjs);
+ Common::sort(objects.begin(), objects.end(), AdScene::compareObjs);
// display them
for (int i = 0; i < objects.getSize(); i++) {
@@ -2994,7 +2994,7 @@ bool AdScene::getRegionObjects(AdRegion *region, BaseArray<AdObject *> &objects, }
// sort by _posY
- qsort(objects.getData(), objects.getSize(), sizeof(AdObject *), AdScene::compareObjs);
+ Common::sort(objects.begin(), objects.end(), AdScene::compareObjs);
return STATUS_OK;
}
|