diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-30 16:41:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-31 08:33:54 +0200 |
commit | b08217989558addbcaded122a4e7211ae24bbcff (patch) | |
tree | 9ba60dba293d071482a309985e1c7d7ff5a5a955 /writerperfect | |
parent | 307be8c9cedb32560419bbb09e029b906e5f1acd (diff) |
clang-tidy readability-redundant-string-cstr
and readability-redundant-string-init
Change-Id: I7b25659ace9e1d5be042ec5e179f01191693334e
Reviewed-on: https://gerrit.libreoffice.org/38225
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/calc/MSWorksCalcImportFilter.cxx | 2 | ||||
-rw-r--r-- | writerperfect/source/writer/MSWorksImportFilter.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/writerperfect/source/calc/MSWorksCalcImportFilter.cxx b/writerperfect/source/calc/MSWorksCalcImportFilter.cxx index 5233078da22b..eb5dd9d37d31 100644 --- a/writerperfect/source/calc/MSWorksCalcImportFilter.cxx +++ b/writerperfect/source/calc/MSWorksCalcImportFilter.cxx @@ -194,7 +194,7 @@ bool MSWorksCalcImportFilter::doImportDocument(librevenge::RVNGInputStream &rInp if ((kind != libwps::WPS_SPREADSHEET && kind != libwps::WPS_DATABASE) || (confidence == libwps::WPS_CONFIDENCE_NONE)) return false; - std::string fileEncoding(""); + std::string fileEncoding; if (needEncoding) { OUString title, encoding; diff --git a/writerperfect/source/writer/MSWorksImportFilter.cxx b/writerperfect/source/writer/MSWorksImportFilter.cxx index 7f713857f018..723ebf73f892 100644 --- a/writerperfect/source/writer/MSWorksImportFilter.cxx +++ b/writerperfect/source/writer/MSWorksImportFilter.cxx @@ -38,7 +38,7 @@ bool MSWorksImportFilter::doImportDocument(librevenge::RVNGInputStream &rInput, bool needEncoding = false; const libwps::WPSConfidence confidence = libwps::WPSDocument::isFileFormatSupported(&rInput, kind, creator, needEncoding); - std::string fileEncoding(""); + std::string fileEncoding; try { if ((kind == libwps::WPS_TEXT) && (confidence == libwps::WPS_CONFIDENCE_EXCELLENT) && needEncoding) |