summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-16 05:21:39 +0000
committerDana Jansens <danakj@orodu.net>2003-01-16 05:21:39 +0000
commita7207b7d8367af47ddb7e2733cb963148fd0379f (patch)
treed26b5494cf1a91f2b94ba51c5370e4e5299b3cae
parent0f7e3be6b60888912dc9c7089e23074ef64373e0 (diff)
make an optional bool param for ustring's other constructors
-rw-r--r--otk/ustring.cc8
-rw-r--r--otk/ustring.hh4
2 files changed, 6 insertions, 6 deletions
diff --git a/otk/ustring.cc b/otk/ustring.cc
index b6432d44..7ac89bf7 100644
--- a/otk/ustring.cc
+++ b/otk/ustring.cc
@@ -132,13 +132,13 @@ ustring& ustring::operator=(const ustring& other)
return *this;
}
-ustring::ustring(const std::string& src)
- : _string(src), _utf8(true)
+ustring::ustring(const std::string& src, bool utf8)
+ : _string(src), _utf8(utf8)
{
}
-ustring::ustring(const char* src)
- : _string(src), _utf8(true)
+ustring::ustring(const char* src, bool utf8)
+ : _string(src), _utf8(utf8)
{
}
diff --git a/otk/ustring.hh b/otk/ustring.hh
index be2a59c8..8ee066d3 100644
--- a/otk/ustring.hh
+++ b/otk/ustring.hh
@@ -124,8 +124,8 @@ public:
ustring(const ustring& other);
ustring& operator=(const ustring& other);
- ustring(const std::string& src);
- ustring(const char* src);
+ ustring(const std::string& src, bool utf8 = true);
+ ustring(const char* src, bool utf8 = true);
// append to the string