Don't use std::vector::shrink_to_fit(), it's C++11, and not enabled on iOS
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>
Mon, 15 Apr 2013 14:25:30 +0000 (16:25 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Wed, 17 Apr 2013 11:46:31 +0000 (13:46 +0200)
Change-Id: I547df5bcf09837ebac9d64d66a4171ed87627b1a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/3rdparty/masm/stubs/wtf/Vector.h

index 836d91c..1fa2b58 100644 (file)
@@ -99,7 +99,7 @@ public:
     { this->erase(this->std::vector<T>::begin() + size, this->std::vector<T>::end()); }
 
     inline void shrinkToFit()
-    { this->shrink_to_fit(); }
+    { this->shrink(this->size()); }
 
     inline void remove(size_t position)
     { this->erase(this->std::vector<T>::begin() + position); }