summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2012-05-11 10:54:10 +0000
committerrandomdan <randomdan@localhost>2012-05-11 10:54:10 +0000
commit8e0206a71d43b566ac08a5839688b0268903e4bb (patch)
tree896489ffc04651f555304d3209e4ffd3dbd89914
parentProcess parameters each time to avoid serving up the same content everytime (diff)
downloadproject2-8e0206a71d43b566ac08a5839688b0268903e4bb.tar.bz2
project2-8e0206a71d43b566ac08a5839688b0268903e4bb.tar.xz
project2-8e0206a71d43b566ac08a5839688b0268903e4bb.zip
Fix vector allocation bug in file based presenter cache
-rw-r--r--project2/files/presenterCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/project2/files/presenterCache.cpp b/project2/files/presenterCache.cpp
index b90e29d..9c8ace2 100644
--- a/project2/files/presenterCache.cpp
+++ b/project2/files/presenterCache.cpp
@@ -142,7 +142,7 @@ class FilePresenterCache : public PresenterCache, public StaticContent, public S
unsigned int puc = Environment::getCurrent()->getParamUriCount();
key.get<0>().reserve(puc);
for (unsigned int i = 0; i < puc; i += 1) {
- key.get<0>()[i] = Environment::getCurrent()->getParamUri(i).raw();
+ key.get<0>().push_back(Environment::getCurrent()->getParamUri(i).raw());
}
applyKeys(boost::bind(&appendParams, &key.get<1>(), _1, _2));
return key;