Switch to reference parameters as appropriate.
[shibboleth/xmltooling.git] / xmltooling / util / TemplateEngine.h
index ad4027b..4023b52 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2007 Internet2
+ *  Copyright 2001-2009 Internet2
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -100,7 +100,7 @@ namespace xmltooling {
              * @param name  name of parameter collection
              * @return vector of parameters
              */
-            virtual const std::vector<TemplateParameters> getParameterCollection(const char* name) const {
+            virtual const std::vector<TemplateParameters>& getParameterCollection(const char* name) const {
                 std::map<std::string,std::vector<TemplateParameters> >::const_iterator i=m_collectionMap.find(name);
                 return (i->second);
             }