diff options
author | randomdan <randomdan@localhost> | 2012-05-11 10:54:10 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2012-05-11 10:54:10 +0000 |
commit | 6097bd7d5f1198041ed2fad97713e0cd9c59b6f5 (patch) | |
tree | 896489ffc04651f555304d3209e4ffd3dbd89914 | |
parent | Process parameters each time to avoid serving up the same content everytime (diff) | |
download | project2-6097bd7d5f1198041ed2fad97713e0cd9c59b6f5.tar.bz2 project2-6097bd7d5f1198041ed2fad97713e0cd9c59b6f5.tar.xz project2-6097bd7d5f1198041ed2fad97713e0cd9c59b6f5.zip |
Fix vector allocation bug in file based presenter cache
-rw-r--r-- | project2/files/presenterCache.cpp | 2 |
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; |