extractMapInfo now passes queue by value so parser can use it

This commit is contained in:
suhrke 2017-07-06 10:29:54 -07:00
parent 640ce93ff4
commit 3b73c4300a
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ EntityConverter::EntityConverter(const std::string &entityMapFile,
*--------------------------------------------------------------------------------------
*/
void
EntityConverter::extractMapInfo(std::queue<std::vector<std::string>> &entities)
EntityConverter::extractMapInfo(std::queue<std::vector<std::string>> entities)
{
if( haveMapInfo_ ) {
std::cerr << "Map info already extracted, doing nothing" << std::endl;

View File

@ -97,7 +97,7 @@ class EntityConverter
* THROWS: runtime_error when encountering malformed entity
*--------------------------------------------------------------------------------------
*/
void extractMapInfo(std::queue<std::vector<std::string>> &entities);
void extractMapInfo(std::queue<std::vector<std::string>> entities);