diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-07-30 17:48:09 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-31 12:54:17 +0200 |
commit | 086ce5c2bb036ca8268f8bcb19099866f8561047 (patch) | |
tree | fc7fe096b455424bfdb63c7c4b0b47941948de7f /svtools/source/misc/imagemgr.cxx | |
parent | 06daea730e65b70f1a2c6adaeeeaa8fc2927a311 (diff) |
Improved loplugin:stringconstant (now that GCC 7 supports it): svtools
Change-Id: I4d42441adf5408e0281577078b0d5537acb02513
Reviewed-on: https://gerrit.libreoffice.org/76641
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svtools/source/misc/imagemgr.cxx')
-rw-r--r-- | svtools/source/misc/imagemgr.cxx | 184 |
1 files changed, 92 insertions, 92 deletions
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx index c459198daa3f..9026b65e62d8 100644 --- a/svtools/source/misc/imagemgr.cxx +++ b/svtools/source/misc/imagemgr.cxx @@ -487,97 +487,97 @@ static OUString GetImageNameFromList_Impl( SvImageId nImageId, bool bBig ) switch (nImageId) { case SvImageId::Impress: - return OUString(BMP_IMPRESS_LC); + return BMP_IMPRESS_LC; case SvImageId::Bitmap: - return OUString(BMP_BITMAP_LC); + return BMP_BITMAP_LC; case SvImageId::Calc: - return OUString(BMP_CALC_LC); + return BMP_CALC_LC; case SvImageId::CalcTemplate: - return OUString(BMP_CALCTEMPLATE_LC); + return BMP_CALCTEMPLATE_LC; case SvImageId::Database: - return OUString(BMP_DATABASE_LC); + return BMP_DATABASE_LC; case SvImageId::ImpressTemplate: - return OUString(BMP_IMPRESSTEMPLATE_LC); + return BMP_IMPRESSTEMPLATE_LC; case SvImageId::GIF: - return OUString(BMP_GIF_LC); + return BMP_GIF_LC; case SvImageId::HTML: - return OUString(BMP_HTML_LC); + return BMP_HTML_LC; case SvImageId::JPG: - return OUString(BMP_JPG_LC); + return BMP_JPG_LC; case SvImageId::Math: - return OUString(BMP_MATH_LC); + return BMP_MATH_LC; case SvImageId::MathTemplate: - return OUString(BMP_MATHTEMPLATE_LC); + return BMP_MATHTEMPLATE_LC; case SvImageId::File: - return OUString(BMP_FILE_LC); + return BMP_FILE_LC; case SvImageId::PCD: - return OUString(BMP_PCD_LC); + return BMP_PCD_LC; case SvImageId::PCT: - return OUString(BMP_PCT_LC); + return BMP_PCT_LC; case SvImageId::PCX: - return OUString(BMP_PCX_LC); + return BMP_PCX_LC; case SvImageId::SIM: - return OUString(BMP_SIM_LC); + return BMP_SIM_LC; case SvImageId::TextFile: - return OUString(BMP_TEXTFILE_LC); + return BMP_TEXTFILE_LC; case SvImageId::TIFF: - return OUString(BMP_TIFF_LC); + return BMP_TIFF_LC; case SvImageId::WMF: - return OUString(BMP_WMF_LC); + return BMP_WMF_LC; case SvImageId::Writer: - return OUString(BMP_WRITER_LC); + return BMP_WRITER_LC; case SvImageId::WriterTemplate: - return OUString(BMP_WRITERTEMPLATE_LC); + return BMP_WRITERTEMPLATE_LC; case SvImageId::FixedDevice: - return OUString(BMP_FIXEDDEV_LC); + return BMP_FIXEDDEV_LC; case SvImageId::RemoveableDevice: - return OUString(BMP_REMOVABLEDEV_LC); + return BMP_REMOVABLEDEV_LC; case SvImageId::CDRomDevice: - return OUString(BMP_CDROMDEV_LC); + return BMP_CDROMDEV_LC; case SvImageId::NetworkDevice: - return OUString(BMP_NETWORKDEV_LC); + return BMP_NETWORKDEV_LC; case SvImageId::Table: - return OUString(BMP_TABLE_LC); + return BMP_TABLE_LC; case SvImageId::Folder: - return OUString(BMP_FOLDER_LC); + return BMP_FOLDER_LC; case SvImageId::DXF: - return OUString(BMP_DXF_LC); + return BMP_DXF_LC; case SvImageId::MET: - return OUString(BMP_MET_LC); + return BMP_MET_LC; case SvImageId::PNG: - return OUString(BMP_PNG_LC); + return BMP_PNG_LC; case SvImageId::SVM: - return OUString(BMP_SVM_LC); + return BMP_SVM_LC; case SvImageId::GlobalDoc: - return OUString(BMP_GLOBAL_DOC_LC); + return BMP_GLOBAL_DOC_LC; case SvImageId::Draw: - return OUString(BMP_DRAW_LC); + return BMP_DRAW_LC; case SvImageId::DrawTemplate: - return OUString(BMP_DRAWTEMPLATE_LC); + return BMP_DRAWTEMPLATE_LC; case SvImageId::OO_DatabaseDoc: - return OUString(BMP_OO_DATABASE_DOC_LC); + return BMP_OO_DATABASE_DOC_LC; case SvImageId::OO_DrawDoc: - return OUString(BMP_OO_DRAW_DOC_LC); + return BMP_OO_DRAW_DOC_LC; case SvImageId::OO_MathDoc: - return OUString(BMP_OO_MATH_DOC_LC); + return BMP_OO_MATH_DOC_LC; case SvImageId::OO_GlobalDoc: - return OUString(BMP_OO_GLOBAL_DOC_LC); + return BMP_OO_GLOBAL_DOC_LC; case SvImageId::OO_ImpressDoc: - return OUString(BMP_OO_IMPRESS_DOC_LC); + return BMP_OO_IMPRESS_DOC_LC; case SvImageId::OO_CalcDoc: - return OUString(BMP_OO_CALC_DOC_LC); + return BMP_OO_CALC_DOC_LC; case SvImageId::OO_WriterDoc: - return OUString(BMP_OO_WRITER_DOC_LC); + return BMP_OO_WRITER_DOC_LC; case SvImageId::OO_DrawTemplate: - return OUString(BMP_OO_DRAW_TEMPLATE_LC); + return BMP_OO_DRAW_TEMPLATE_LC; case SvImageId::OO_ImpressTemplate: - return OUString(BMP_OO_IMPRESS_TEMPLATE_LC); + return BMP_OO_IMPRESS_TEMPLATE_LC; case SvImageId::OO_CalcTemplate: - return OUString(BMP_OO_CALC_TEMPLATE_LC); + return BMP_OO_CALC_TEMPLATE_LC; case SvImageId::OO_WriterTemplate: - return OUString(BMP_OO_WRITER_TEMPLATE_LC); + return BMP_OO_WRITER_TEMPLATE_LC; case SvImageId::Extension: - return OUString(BMP_EXTENSION_LC); + return BMP_EXTENSION_LC; default: break; } } @@ -586,98 +586,98 @@ static OUString GetImageNameFromList_Impl( SvImageId nImageId, bool bBig ) switch (nImageId) { case SvImageId::Impress: - return OUString(BMP_IMPRESS_SC); + return BMP_IMPRESS_SC; case SvImageId::Bitmap: - return OUString(BMP_BITMAP_SC); + return BMP_BITMAP_SC; case SvImageId::Calc: - return OUString(BMP_CALC_SC); + return BMP_CALC_SC; case SvImageId::CalcTemplate: - return OUString(BMP_CALCTEMPLATE_SC); + return BMP_CALCTEMPLATE_SC; case SvImageId::Database: - return OUString(BMP_DATABASE_SC); + return BMP_DATABASE_SC; case SvImageId::ImpressTemplate: - return OUString(BMP_IMPRESSTEMPLATE_SC); + return BMP_IMPRESSTEMPLATE_SC; case SvImageId::GIF: - return OUString(BMP_GIF_SC); + return BMP_GIF_SC; case SvImageId::HTML: - return OUString(BMP_HTML_SC); + return BMP_HTML_SC; case SvImageId::JPG: - return OUString(BMP_JPG_SC); + return BMP_JPG_SC; case SvImageId::Math: - return OUString(BMP_MATH_SC); + return BMP_MATH_SC; case SvImageId::MathTemplate: - return OUString(BMP_MATHTEMPLATE_SC); + return BMP_MATHTEMPLATE_SC; case SvImageId::File: - return OUString(BMP_FILE_SC); + return BMP_FILE_SC; case SvImageId::PCD: - return OUString(BMP_PCD_SC); + return BMP_PCD_SC; case SvImageId::PCT: - return OUString(BMP_PCT_SC); + return BMP_PCT_SC; case SvImageId::PCX: - return OUString(BMP_PCX_SC); + return BMP_PCX_SC; case SvImageId::SIM: - return OUString(BMP_SIM_SC); + return BMP_SIM_SC; case SvImageId::TextFile: - return OUString(BMP_TEXTFILE_SC); + return BMP_TEXTFILE_SC; case SvImageId::TIFF: - return OUString(BMP_TIFF_SC); + return BMP_TIFF_SC; case SvImageId::WMF: - return OUString(BMP_WMF_SC); + return BMP_WMF_SC; case SvImageId::Writer: - return OUString(BMP_WRITER_SC); + return BMP_WRITER_SC; case SvImageId::WriterTemplate: - return OUString(BMP_WRITERTEMPLATE_SC); + return BMP_WRITERTEMPLATE_SC; case SvImageId::FixedDevice: - return OUString(BMP_FIXEDDEV_SC); + return BMP_FIXEDDEV_SC; case SvImageId::RemoveableDevice: - return OUString(BMP_REMOVABLEDEV_SC); + return BMP_REMOVABLEDEV_SC; case SvImageId::CDRomDevice: - return OUString(BMP_CDROMDEV_SC); + return BMP_CDROMDEV_SC; case SvImageId::NetworkDevice: - return OUString(BMP_NETWORKDEV_SC); + return BMP_NETWORKDEV_SC; case SvImageId::Table: - return OUString(BMP_TABLE_SC); + return BMP_TABLE_SC; case SvImageId::Folder: // if not bBig, then return our new small folder image (256 colors) - return OUString(RID_BMP_FOLDER); + return RID_BMP_FOLDER; case SvImageId::DXF: - return OUString(BMP_DXF_SC); + return BMP_DXF_SC; case SvImageId::MET: - return OUString(BMP_MET_SC); + return BMP_MET_SC; case SvImageId::PNG: - return OUString(BMP_PNG_SC); + return BMP_PNG_SC; case SvImageId::SVM: - return OUString(BMP_SVM_SC); + return BMP_SVM_SC; case SvImageId::GlobalDoc: - return OUString(BMP_GLOBAL_DOC_SC); + return BMP_GLOBAL_DOC_SC; case SvImageId::Draw: - return OUString(BMP_DRAW_SC); + return BMP_DRAW_SC; case SvImageId::DrawTemplate: - return OUString(BMP_DRAWTEMPLATE_SC); + return BMP_DRAWTEMPLATE_SC; case SvImageId::OO_DatabaseDoc: - return OUString(BMP_OO_DATABASE_DOC_SC); + return BMP_OO_DATABASE_DOC_SC; case SvImageId::OO_DrawDoc: - return OUString(BMP_OO_DRAW_DOC_SC); + return BMP_OO_DRAW_DOC_SC; case SvImageId::OO_MathDoc: - return OUString(BMP_OO_MATH_DOC_SC); + return BMP_OO_MATH_DOC_SC; case SvImageId::OO_GlobalDoc: - return OUString(BMP_OO_GLOBAL_DOC_SC); + return BMP_OO_GLOBAL_DOC_SC; case SvImageId::OO_ImpressDoc: - return OUString(BMP_OO_IMPRESS_DOC_SC); + return BMP_OO_IMPRESS_DOC_SC; case SvImageId::OO_CalcDoc: - return OUString(BMP_OO_CALC_DOC_SC); + return BMP_OO_CALC_DOC_SC; case SvImageId::OO_WriterDoc: - return OUString(BMP_OO_WRITER_DOC_SC); + return BMP_OO_WRITER_DOC_SC; case SvImageId::OO_DrawTemplate: - return OUString(BMP_OO_DRAW_TEMPLATE_SC); + return BMP_OO_DRAW_TEMPLATE_SC; case SvImageId::OO_ImpressTemplate: - return OUString(BMP_OO_IMPRESS_TEMPLATE_SC); + return BMP_OO_IMPRESS_TEMPLATE_SC; case SvImageId::OO_CalcTemplate: - return OUString(BMP_OO_CALC_TEMPLATE_SC); + return BMP_OO_CALC_TEMPLATE_SC; case SvImageId::OO_WriterTemplate: - return OUString(BMP_OO_WRITER_TEMPLATE_SC); + return BMP_OO_WRITER_TEMPLATE_SC; case SvImageId::Extension: - return OUString(BMP_EXTENSION_SC); + return BMP_EXTENSION_SC; default: break; } } |