From 6097bd7d5f1198041ed2fad97713e0cd9c59b6f5 Mon Sep 17 00:00:00 2001 From: randomdan Date: Fri, 11 May 2012 10:54:10 +0000 Subject: Fix vector allocation bug in file based presenter cache --- project2/files/presenterCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3