diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-10-13 02:21:32 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-10-13 02:21:32 +0200 |
commit | 77e7321c06c444f174fc4897c5ca655fa4d9f28a (patch) | |
tree | cf705d467d62c6312cb6d421cad7d8e3fcad1a8e /crawl-ref/source/unicode.cc | |
parent | 29bdbe965aa5a70c495857c2d0bbe94cbd66a6b3 (diff) | |
download | crawl-ref-77e7321c06c444f174fc4897c5ca655fa4d9f28a.tar.gz crawl-ref-77e7321c06c444f174fc4897c5ca655fa4d9f28a.zip |
Fix a build failure when libutil.h is included from the global header.
Diffstat (limited to 'crawl-ref/source/unicode.cc')
-rw-r--r-- | crawl-ref/source/unicode.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/unicode.cc b/crawl-ref/source/unicode.cc index 33a92eb0f0..9f9383ab81 100644 --- a/crawl-ref/source/unicode.cc +++ b/crawl-ref/source/unicode.cc @@ -513,7 +513,7 @@ char *next_glyph(char *s) return s_cur; } -std::string chop_string(const char *s, int width, bool spaces = true) +std::string chop_string(const char *s, int width, bool spaces) { const char *s0 = s; ucs_t c; @@ -535,7 +535,7 @@ std::string chop_string(const char *s, int width, bool spaces = true) return std::string(s0, s - s0);; } -std::string chop_string(const std::string &s, int width, bool spaces = true) +std::string chop_string(const std::string &s, int width, bool spaces) { return chop_string(s.c_str(), width, spaces); } |