diff options
Diffstat (limited to 'src/utils.cc')
-rw-r--r-- | src/utils.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils.cc b/src/utils.cc index b5063ffeb6..03a48114fc 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -51,8 +51,10 @@ std::string PrettyDescriptor(const String* java_descriptor) { if (java_descriptor == NULL) { return "null"; } - std::string descriptor(java_descriptor->ToModifiedUtf8()); + return PrettyDescriptor(java_descriptor->ToModifiedUtf8()); +} +std::string PrettyDescriptor(const std::string& descriptor) { // Count the number of '['s to get the dimensionality. const char* c = descriptor.c_str(); size_t dim = 0; |