diff options
Diffstat (limited to 'codemaker/source/cppumaker/dumputils.cxx')
-rw-r--r-- | codemaker/source/cppumaker/dumputils.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/codemaker/source/cppumaker/dumputils.cxx b/codemaker/source/cppumaker/dumputils.cxx index 2a3e809e70f3..37e3ce629862 100644 --- a/codemaker/source/cppumaker/dumputils.cxx +++ b/codemaker/source/cppumaker/dumputils.cxx @@ -71,7 +71,8 @@ bool dumpNamespaceClose( } void dumpTypeIdentifier(FileStream & out, std::u16string_view entityName) { - out << entityName.substr(entityName.rfind('.') + 1); + std::u16string_view::size_type pos = entityName.rfind('.'); + out << entityName.substr((pos != std::u16string_view::npos) ? pos + 1 : 0); } } |