diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-01-28 20:29:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-29 09:25:12 +0100 |
commit | 1250aecd71fabde4dba990bfceb61bbe8e06b8ea (patch) | |
tree | 3c42ffdf68b7e81aba29228631a8cd34e2f11830 /sc/qa/unit/helper | |
parent | 4f3987e0b1a995431478769c898b5ef151745254 (diff) |
loplugin:stringviewparam extend to new..
O[U]StringBuffer methods
Change-Id: I0ffbc33d54ae7c98b5652434f3370ee4f819f6f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110090
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/qa/unit/helper')
-rw-r--r-- | sc/qa/unit/helper/qahelper.cxx | 10 | ||||
-rw-r--r-- | sc/qa/unit/helper/qahelper.hxx | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx index 5400347324e7..051292ea52e6 100644 --- a/sc/qa/unit/helper/qahelper.cxx +++ b/sc/qa/unit/helper/qahelper.cxx @@ -653,7 +653,15 @@ void ScBootstrapFixture::createFileURL( rFilePath = url.GetMainURL(INetURLObject::DecodeMechanism::NONE); } -void ScBootstrapFixture::createCSVPath(const OUString& aFileBase, OUString& rCSVPath) +void ScBootstrapFixture::createCSVPath(const char* aFileBase, OUString& rCSVPath) +{ + OUStringBuffer aBuffer( m_directories.getSrcRootPath()); + aBuffer.append(EnsureSeparator(aBuffer)).append(m_aBaseString); + aBuffer.append(EnsureSeparator(aBuffer)).append("contentCSV/").appendAscii(aFileBase).append("csv"); + rCSVPath = aBuffer.makeStringAndClear(); +} + +void ScBootstrapFixture::createCSVPath(std::u16string_view aFileBase, OUString& rCSVPath) { OUStringBuffer aBuffer( m_directories.getSrcRootPath()); aBuffer.append(EnsureSeparator(aBuffer)).append(m_aBaseString); diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx index 693ccbe3675f..5e1dc4cd3da4 100644 --- a/sc/qa/unit/helper/qahelper.hxx +++ b/sc/qa/unit/helper/qahelper.hxx @@ -188,8 +188,8 @@ public: virtual ~ScBootstrapFixture() override; void createFileURL(std::u16string_view aFileBase, const OUString& aFileExtension, OUString& rFilePath); - - void createCSVPath(const OUString& aFileBase, OUString& rCSVPath); + void createCSVPath(const char* aFileBase, OUString& rCSVPath); + void createCSVPath(std::u16string_view aFileBase, OUString& rCSVPath); ScDocShellRef saveAndReload(ScDocShell* pShell, const OUString &rFilter, const OUString &rUserData, const OUString& rTypeName, SfxFilterFlags nFormatType, const OUString* pPassword = nullptr ); |