From f6920653c7a958528df248ff61c372a0bd3d4f1d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 Feb 2013 03:26:24 +0300 Subject: Add missing checks and consts. --- src/utils/stringutils.cpp | 2 +- src/utils/stringutils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 7786002e5..74e5d9f58 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -525,7 +525,7 @@ std::string combineDye2(std::string file, std::string dye) } } -std::string packList(std::list &list) +std::string packList(const std::list &list) { std::list::const_iterator i = list.begin(); std::string str(""); diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h index 45c1f4b0a..612486cb2 100644 --- a/src/utils/stringutils.h +++ b/src/utils/stringutils.h @@ -199,7 +199,7 @@ std::string combineDye(std::string file, std::string dye) A_WARN_UNUSED; std::string combineDye2(std::string file, std::string dye) A_WARN_UNUSED; -std::string packList(std::list &list) A_WARN_UNUSED; +std::string packList(const std::list &list) A_WARN_UNUSED; std::list unpackList(const std::string &str) A_WARN_UNUSED; -- cgit v1.2.3-70-g09d2