diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-22 11:14:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-24 07:06:11 +0100 |
commit | 0e585562d7ae706c52c6d872690904012e79b3b6 (patch) | |
tree | 6fb1f82176903262b1cd221da8bb917b5ca45a20 /cui | |
parent | c9d4adb3cf08376ca1b5c7cef88340e294ca168f (diff) |
convert EPathType to scoped enum
and drop unused values
Change-Id: I0ba498d66702fb4bb4ff23fb4c42783fc1c83f75
Reviewed-on: https://gerrit.libreoffice.org/63907
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/hldoctp.cxx | 8 | ||||
-rw-r--r-- | cui/source/inc/hldoctp.hxx | 4 |
2 files changed, 5 insertions, 7 deletions
diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx index e0dc67de6695..9c3033b693c7 100644 --- a/cui/source/dialogs/hldoctp.cxx +++ b/cui/source/dialogs/hldoctp.cxx @@ -233,7 +233,7 @@ IMPL_LINK_NOARG(SvxHyperlinkDocTp, ClickFileopenHdl_Impl, Button*, void) IMPL_LINK_NOARG(SvxHyperlinkDocTp, ClickTargetHdl_Impl, Button*, void) { - if ( GetPathType ( maStrURL ) == Type_ExistsFile || + if ( GetPathType ( maStrURL ) == EPathType::ExistsFile || maStrURL.isEmpty() || maStrURL.equalsIgnoreAsciiCase( sFileScheme ) || maStrURL.startsWith( sHash ) ) @@ -279,7 +279,7 @@ IMPL_LINK_NOARG(SvxHyperlinkDocTp, ModifiedPathHdl_Impl, Edit&, void) IMPL_LINK_NOARG(SvxHyperlinkDocTp, TimeoutHdl_Impl, Timer *, void) { - if ( IsMarkWndVisible() && ( GetPathType( maStrURL )==Type_ExistsFile || + if ( IsMarkWndVisible() && ( GetPathType( maStrURL )== EPathType::ExistsFile || maStrURL.isEmpty() || maStrURL.equalsIgnoreAsciiCase( sFileScheme ) ) ) { @@ -347,9 +347,9 @@ SvxHyperlinkDocTp::EPathType SvxHyperlinkDocTp::GetPathType ( const OUString& rS INetURLObject aURL( rStrPath, INetProtocol::File ); if( aURL.HasError() ) - return Type_Invalid; + return EPathType::Invalid; else - return Type_ExistsFile; + return EPathType::ExistsFile; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/inc/hldoctp.hxx b/cui/source/inc/hldoctp.hxx index b8a8b8dfb30d..4bda2b78a5ad 100644 --- a/cui/source/inc/hldoctp.hxx +++ b/cui/source/inc/hldoctp.hxx @@ -51,9 +51,7 @@ private: DECL_LINK( TimeoutHdl_Impl, Timer *, void ); ///< Handler for timer -timeout - enum EPathType { Type_Unknown, Type_Invalid, - Type_ExistsFile, Type_File, - Type_ExistsDir, Type_Dir }; + enum class EPathType { Invalid, ExistsFile }; static EPathType GetPathType ( const OUString& rStrPath ); void FillDlgFields(const OUString& rStrURL) override; |