diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-24 10:50:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-25 08:40:00 +0200 |
commit | 479aa67fd94d648cb5637773189bfb286ff78d5c (patch) | |
tree | c9fe5896016b156df541318add2b5ba3844b1e28 /include | |
parent | f35e645e8271dbc1b6ed65f5fe846df3ba0abdba (diff) |
convert SEARCH_RESULT to scoped enum
Change-Id: Id4b5bffaa89a07d3ceaad89f52b07482f10ac9d0
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/fmsrcimp.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/svx/fmsrcimp.hxx b/include/svx/fmsrcimp.hxx index 59c622f147ef..842b0858dd4a 100644 --- a/include/svx/fmsrcimp.hxx +++ b/include/svx/fmsrcimp.hxx @@ -165,7 +165,7 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC FmSearchEngine { friend class FmSearchThread; - enum SEARCH_RESULT { SR_FOUND, SR_NOTFOUND, SR_ERROR, SR_CANCELED }; + enum class SearchResult { Found, NotFound, Error, Cancelled }; enum class SearchFor { String, Null, NotNull }; CursorWrapper m_xSearchCursor; @@ -205,7 +205,7 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC FmSearchEngine // Communication with the thread that does the actual searching OUString m_strSearchExpression; // forward direction SearchFor m_eSearchForType; // ditto - SEARCH_RESULT m_srResult; // backward direction + SearchResult m_srResult; // backward direction // The link we broadcast the progress and the result to Link<const FmSearchProgress*,void> m_aProgressHandler; @@ -344,11 +344,11 @@ private: // three methods implementing a complete search loop (null/not null, wildcard, SearchText) // (they all have some code in common, but with this solution we have to do a distinction only once per search (before // starting the loop), not in every loop step - SVX_DLLPRIVATE SEARCH_RESULT SearchSpecial(bool _bSearchForNull, sal_Int32& nFieldPos, FieldCollection::iterator& iterFieldLoop, + SVX_DLLPRIVATE SearchResult SearchSpecial(bool _bSearchForNull, sal_Int32& nFieldPos, FieldCollection::iterator& iterFieldLoop, const FieldCollection::iterator& iterBegin, const FieldCollection::iterator& iterEnd); - SVX_DLLPRIVATE SEARCH_RESULT SearchWildcard(const OUString& strExpression, sal_Int32& nFieldPos, FieldCollection::iterator& iterFieldLoop, + SVX_DLLPRIVATE SearchResult SearchWildcard(const OUString& strExpression, sal_Int32& nFieldPos, FieldCollection::iterator& iterFieldLoop, const FieldCollection::iterator& iterBegin, const FieldCollection::iterator& iterEnd); - SVX_DLLPRIVATE SEARCH_RESULT SearchRegularApprox(const OUString& strExpression, sal_Int32& nFieldPos, FieldCollection::iterator& iterFieldLoop, + SVX_DLLPRIVATE SearchResult SearchRegularApprox(const OUString& strExpression, sal_Int32& nFieldPos, FieldCollection::iterator& iterFieldLoop, const FieldCollection::iterator& iterBegin, const FieldCollection::iterator& iterEnd); SVX_DLLPRIVATE void PropagateProgress(bool _bDontPropagateOverflow); |