diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-03 21:28:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-04 13:48:11 +0200 |
commit | 5de24375515bc2932d299047e9cb8c9c9bf3ee1d (patch) | |
tree | 81c451b7ccbf90d6d3e219f26b62e98993fff7df /dbaccess | |
parent | c2e8a96a8107a37901e475c65a8e61211fc3b132 (diff) |
use string_view in comphelper::string::split
Change-Id: I4afe8aee85905ee35ba195b00b454aefa0ba38af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132486
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/filter/hsqldb/createparser.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/filter/hsqldb/createparser.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/filter/hsqldb/createparser.cxx b/dbaccess/source/filter/hsqldb/createparser.cxx index 9dfe2b2c53d7..67607ac8aae2 100644 --- a/dbaccess/source/filter/hsqldb/createparser.cxx +++ b/dbaccess/source/filter/hsqldb/createparser.cxx @@ -47,7 +47,7 @@ OUString lcl_getColumnPart(const OUString& sSql) /// /// @param sColumnPart part of the create statement inside the parenthesis /// containing the column definitions -std::vector<OUString> lcl_splitColumnPart(const OUString& sColumnPart) +std::vector<OUString> lcl_splitColumnPart(std::u16string_view sColumnPart) { std::vector<OUString> sParts = string::split(sColumnPart, sal_Unicode(u',')); std::vector<OUString> sReturn; @@ -214,7 +214,7 @@ void CreateStmtParser::parsePrimaryKeys(const OUString& sPrimaryPart) } } -void CreateStmtParser::parseColumnPart(const OUString& sColumnPart) +void CreateStmtParser::parseColumnPart(std::u16string_view sColumnPart) { auto sColumns = lcl_splitColumnPart(sColumnPart); for (const OUString& sColumn : sColumns) diff --git a/dbaccess/source/filter/hsqldb/createparser.hxx b/dbaccess/source/filter/hsqldb/createparser.hxx index 909b4063ac58..85610ebfd3f3 100644 --- a/dbaccess/source/filter/hsqldb/createparser.hxx +++ b/dbaccess/source/filter/hsqldb/createparser.hxx @@ -23,7 +23,7 @@ private: OUString m_sTableName; protected: - void parseColumnPart(const OUString& sColumnPart); + void parseColumnPart(std::u16string_view sColumnPart); void parsePrimaryKeys(const OUString& sPrimaryPart); public: |