From 7e8a32831f88e720c9ba724037b76d09fc5c1cd0 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 23 Jul 2007 17:11:56 +0000 Subject: Allow monster symbols to be customised using the mon_glyph option. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1916 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/libutil.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/libutil.cc') diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc index e3c68f87bb..e1cca6a43e 100644 --- a/crawl-ref/source/libutil.cc +++ b/crawl-ref/source/libutil.cc @@ -414,14 +414,14 @@ static void add_segment(std::vector &segs, } std::vector split_string( - const char *sep, - std::string s, - bool trim_segments, - bool accept_empty_segments, - int nsplits) + const std::string &sep, + std::string s, + bool trim_segments, + bool accept_empty_segments, + int nsplits) { std::vector segments; - int separator_length = strlen(sep); + int separator_length = sep.length(); std::string::size_type pos; while (nsplits && (pos = s.find(sep)) != std::string::npos) -- cgit v1.2.3-54-g00ecf