summaryrefslogtreecommitdiff
path: root/src/unistring.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-20 02:10:40 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-20 02:10:40 -0500
commit22505d9527edce59cd3cf90c5241e4bd809eb8a2 (patch)
treed943b2dba416a9fbe8619e02a293dfd854fd0869 /src/unistring.h
parentdf11ecbbd733068284a19369949bcaa20b0e6e76 (diff)
downloadfork-ledger-22505d9527edce59cd3cf90c5241e4bd809eb8a2.tar.gz
fork-ledger-22505d9527edce59cd3cf90c5241e4bd809eb8a2.tar.bz2
fork-ledger-22505d9527edce59cd3cf90c5241e4bd809eb8a2.zip
Always call TRACE_CTOR at the end of constructors
Diffstat (limited to 'src/unistring.h')
-rw-r--r--src/unistring.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unistring.h b/src/unistring.h
index a33c6e3f..b2278796 100644
--- a/src/unistring.h
+++ b/src/unistring.h
@@ -64,14 +64,14 @@ public:
}
unistring(const std::string& input)
{
- TRACE_CTOR(unistring, "std::string");
-
const char * p = input.c_str();
std::size_t len = input.length();
assert(len < 1024);
VERIFY(utf8::is_valid(p, p + len));
utf8::unchecked::utf8to32(p, p + len, std::back_inserter(utf32chars));
+
+ TRACE_CTOR(unistring, "std::string");
}
~unistring() {
TRACE_DTOR(unistring);