diff options
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/misc/sharedstring.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/svl/source/misc/sharedstring.cxx b/svl/source/misc/sharedstring.cxx index 9c0cad2f73af..0438421b2efc 100644 --- a/svl/source/misc/sharedstring.cxx +++ b/svl/source/misc/sharedstring.cxx @@ -118,6 +118,11 @@ bool SharedString::isEmpty() const return mpData == NULL || mpData->length == 0; } +sal_Int32 SharedString::getLength() const +{ + return mpData ? mpData->length : 0; +} + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |