diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-05 08:47:18 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-12-02 11:12:39 -0500 |
commit | 3de922d4a695e253d4ca2d42b70e0b35b52e9b7c (patch) | |
tree | 9d0055989b261d5b4dafaa5b78d5a472d71b8ec3 /cui/source/dialogs/insdlg.cxx | |
parent | 736cd289d4cdb0db61d92134bcc9d48aa7e79613 (diff) |
convert DecodeMechanism to scoped enum
(cherry picked from commit bfde4866e07746eafa2f0d6173c29d805cc35ad0)
Change-Id: I5c56634b1bca8e37fa73d02d2428645301b6c547
Diffstat (limited to 'cui/source/dialogs/insdlg.cxx')
-rw-r--r-- | cui/source/dialogs/insdlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx index 47af4955c749..189193706409 100644 --- a/cui/source/dialogs/insdlg.cxx +++ b/cui/source/dialogs/insdlg.cxx @@ -296,7 +296,7 @@ short SvInsertOleDlg::Execute() INetURLObject aURL; aURL.SetSmartProtocol( INetProtocol::File ); aURL.SetSmartURL( aFileName ); - aFileName = aURL.GetMainURL( INetURLObject::NO_DECODE ); + aFileName = aURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ); bool bLink = m_pCbFilelink->IsChecked(); if ( !aFileName.isEmpty() ) @@ -522,7 +522,7 @@ short SfxInsertFloatingFrameDialog::Execute() INetURLObject aObj; aObj.SetSmartProtocol( INetProtocol::File ); if ( aObj.SetSmartURL( m_pEDURL->GetText() ) ) - aURL = aObj.GetMainURL( INetURLObject::NO_DECODE ); + aURL = aObj.GetMainURL( INetURLObject::DecodeMechanism::NONE ); } if ( !m_xObj.is() && !aURL.isEmpty() ) @@ -626,7 +626,7 @@ IMPL_LINK_NOARG( SfxInsertFloatingFrameDialog, OpenHdl, Button*, void) // show the dialog if ( aFileDlg.Execute() == ERRCODE_NONE ) m_pEDURL->SetText( - INetURLObject( aFileDlg.GetPath() ).GetMainURL( INetURLObject::DECODE_WITH_CHARSET ) ); + INetURLObject( aFileDlg.GetPath() ).GetMainURL( INetURLObject::DecodeMechanism::WithCharset ) ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |