summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-09 09:55:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-10 12:59:38 +0200
commite4ff847fe0796420ba8023b70cad8589f5f19e9f (patch)
tree136786200de69f70dde4190c9725f35fe14b33e0 /idlc
parent5a89496ffcfcd561b3e595e01f35e0302fa00841 (diff)
loplugin:stringview check for getToken and trim
since we now have o3tl versions of those that work on string_view. Also improve those o3tl functions to support both string_view and u16string_view Change-Id: Iacab2996becec62aa78a5597c52d983bb784749a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132755 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/astscope.cxx2
-rw-r--r--idlc/source/idlcproduce.cxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/idlc/source/astscope.cxx b/idlc/source/astscope.cxx
index 0795df6eeb2c..f8309a766ef3 100644
--- a/idlc/source/astscope.cxx
+++ b/idlc/source/astscope.cxx
@@ -161,7 +161,7 @@ AstDeclaration* AstScope::lookupByName(const OString& scopedName)
pScope = declAsScope(pDecl);
if( pScope )
{
- pDecl = pScope->lookupByNameLocal(scopedName.getToken(nOffset, ':', i ));
+ pDecl = pScope->lookupByNameLocal(o3tl::getToken(scopedName, nOffset, ':', i ));
nOffset = 1;
}
if( !pDecl )
diff --git a/idlc/source/idlcproduce.cxx b/idlc/source/idlcproduce.cxx
index e5ea206f0ff8..732647c9e715 100644
--- a/idlc/source/idlcproduce.cxx
+++ b/idlc/source/idlcproduce.cxx
@@ -22,6 +22,7 @@
#include <rtl/strbuf.hxx>
#include <osl/file.hxx>
#include <osl/thread.h>
+#include <o3tl/string_view.hxx>
#if defined(_WIN32)
#include <io.h>
@@ -63,7 +64,7 @@ static bool checkOutputPath(const OString& completeName)
do
{
- buffer.append(sysPathName.getToken(0, SEPARATOR, nIndex));
+ buffer.append(o3tl::getToken(sysPathName, 0, SEPARATOR, nIndex));
if ( !buffer.isEmpty() && nIndex != -1 )
{