summaryrefslogtreecommitdiff
path: root/sfx2/source/view/viewsh.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-01 13:10:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-01 13:25:08 +0000
commit9bdec0831afc45af45ea6d9350ef3372188b45cb (patch)
tree9f761fe2589569a7cd0fbafd6e5fcc4d350d4d64 /sfx2/source/view/viewsh.cxx
parent49c7bc5af291dbf6b34bcea82c9c0513f65b308b (diff)
loplugin:oncevar in sd..svgio
Change-Id: I58565460fcc3279c9771c6e1272d0af540b2c87c Reviewed-on: https://gerrit.libreoffice.org/30459 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/view/viewsh.cxx')
-rw-r--r--sfx2/source/view/viewsh.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 757741169e77..f6f432b87443 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -567,8 +567,6 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq )
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case SID_WEBHTML:
{
- static const char HTML_DOCUMENT_TYPE[] = "generic_HTML";
- static const char HTML_GRAPHIC_TYPE[] = "graphic_HTML";
const sal_Int32 FILTERFLAG_EXPORT = 0x00000002;
css::uno::Reference< lang::XMultiServiceFactory > xSMGR(::comphelper::getProcessServiceFactory(), css::uno::UNO_QUERY_THROW);
@@ -603,7 +601,7 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq )
if ( xModel.is() && xStorable.is() )
{
OUString aFilterName;
- OUString aTypeName( HTML_DOCUMENT_TYPE );
+ OUString aTypeName( "generic_HTML" );
OUString aFileName;
OUString aExtension( "htm" );
@@ -624,7 +622,7 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq )
{
// Draw/Impress uses a different type. 2nd chance try to use alternative type name
aFilterName = impl_retrieveFilterNameFromTypeAndModule(
- xContainerQuery, HTML_GRAPHIC_TYPE, aModule, nFilterFlags );
+ xContainerQuery, "graphic_HTML", aModule, nFilterFlags );
}
// No filter found => error