diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-17 10:15:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-17 17:18:34 +0200 |
commit | b289d5f5cbd9d138832bb8871543763e728c8135 (patch) | |
tree | 68ffb5aab40c872a5f285953e101e7bf06b01af4 /codemaker/source | |
parent | 0810f7d891a8b94bd77d02d7bb1efd2a3f9440fc (diff) |
cid#1608561 Overflowed constant
Change-Id: I3115263da1c76f635d544e41c3cf96e068b34324
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173543
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'codemaker/source')
-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); } } |