summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--idlc/source/astdeclaration.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/idlc/source/astdeclaration.cxx b/idlc/source/astdeclaration.cxx
index 8ef76cc1f50e..013e0995a941 100644
--- a/idlc/source/astdeclaration.cxx
+++ b/idlc/source/astdeclaration.cxx
@@ -21,17 +21,18 @@
#include <astscope.hxx>
#include <rtl/strbuf.hxx>
#include <osl/diagnose.h>
+#include <o3tl/string_view.hxx>
constexpr OStringLiteral sGlobal("::");
-static OString convertName(const OString& name)
+static OString convertName(std::string_view name)
{
- OStringBuffer nameBuffer(name.getLength()+1);
+ OStringBuffer nameBuffer(name.size()+1);
sal_Int32 nIndex = 0;
do
{
- OString token( name.getToken( 0, ':', nIndex ) );
- if( !token.isEmpty() )
+ std::string_view token( o3tl::getToken(name, 0, ':', nIndex ) );
+ if( !token.empty() )
{
nameBuffer.append('/');
nameBuffer.append( token );