diff options
author | Noel <noelgrandin@gmail.com> | 2020-12-02 09:41:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-03 07:05:02 +0100 |
commit | a5216cf1eb647862f377bed9b9a447e8bccf338f (patch) | |
tree | 1873118c6e50d8baba33b80b820179a9df38958d /sw | |
parent | a186fd4f2427df7baa50f78e99644dc5a50dfb12 (diff) |
convert SvtPathOptions::Paths to scoped enum
Change-Id: I2e6cab798309a1bc2ade00661bc95dd5ae20f748
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107045
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/html/swhtml.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx index 5dd73ace4179..d0173d398fa9 100644 --- a/sw/source/filter/html/swhtml.cxx +++ b/sw/source/filter/html/swhtml.cxx @@ -175,13 +175,13 @@ OUString HTMLReader::GetTemplateName(SwDoc& rDoc) const // first search for OpenDocument Writer/Web template // OpenDocument Writer/Web template (extension .oth) OUString sTemplate( sTemplateWithoutExt + ".oth" ); - if (aPathOpt.SearchFile( sTemplate, SvtPathOptions::PATH_TEMPLATE )) + if (aPathOpt.SearchFile( sTemplate, SvtPathOptions::Paths::Template )) return sTemplate; // no OpenDocument Writer/Web template found. // search for OpenOffice.org Writer/Web template sTemplate = sTemplateWithoutExt + ".stw"; - if (aPathOpt.SearchFile( sTemplate, SvtPathOptions::PATH_TEMPLATE )) + if (aPathOpt.SearchFile( sTemplate, SvtPathOptions::Paths::Template )) return sTemplate; OSL_ENSURE( false, "The default HTML template cannot be found in the defined template directories!"); diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index bcabdc6aabbb..9dd318322d01 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -416,7 +416,7 @@ IMPL_LINK_NOARG(SwMultiTOXTabDialog, ShowPreviewHdl, weld::ToggleButton&, void) OUString sTemplate("internal/idxexample.odt"); SvtPathOptions aOpt; - bool bExist = aOpt.SearchFile( sTemplate, SvtPathOptions::PATH_TEMPLATE ); + bool bExist = aOpt.SearchFile( sTemplate, SvtPathOptions::Paths::Template ); if(!bExist) { |