summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-10 11:20:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-10 17:11:42 +0100
commitf08b4f611634994539d78f05b8493dd7dc5478c5 (patch)
treeecd075872e8a4ce9d9c9f78f76a9bcb7df82caef
parentb4e9e7726f0c67938e8b80e6b7c2883459d0b533 (diff)
Use bool
Change-Id: I572eec828396fc1efd493d6ba6ac08679dfca3cc
-rw-r--r--include/unotools/textsearch.hxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/unotools/textsearch.hxx b/include/unotools/textsearch.hxx
index 96b00dc97ba9..759343563e83 100644
--- a/include/unotools/textsearch.hxx
+++ b/include/unotools/textsearch.hxx
@@ -56,12 +56,12 @@ private:
SearchType m_eSrchType; // search normal/regular/LevDist
- int m_bWordOnly : 1; // used by normal search
- int m_bSrchInSel : 1; // search only in the selection
- int m_bCaseSense : 1; //
+ bool m_bWordOnly : 1; // used by normal search
+ bool m_bSrchInSel : 1; // search only in the selection
+ bool m_bCaseSense : 1; //
// values for the "weight Levenshtein-Distance"
- int bLEV_Relaxed : 1;
+ bool bLEV_Relaxed : 1;
int nLEV_OtherX;
int nLEV_ShorterY;
int nLEV_LongerZ;
@@ -84,9 +84,9 @@ public:
const OUString& GetReplaceStr() const { return sReplaceStr; }
SearchType GetSrchType() const { return m_eSrchType; }
- int IsCaseSensitive() const { return m_bCaseSense; }
- int IsSrchInSelection() const { return m_bSrchInSel; }
- int IsSrchWordOnly() const { return m_bWordOnly; }
+ bool IsCaseSensitive() const { return m_bCaseSense; }
+ bool IsSrchInSelection() const { return m_bSrchInSel; }
+ bool IsSrchWordOnly() const { return m_bWordOnly; }
void SetSrchStr( const OUString& rStr ) { sSrchStr = rStr; }
@@ -97,7 +97,7 @@ public:
void SetSrchInSelection( int bFlag ) { m_bSrchInSel = bFlag; }
void SetSrchWordOnly( int bFlag ) { m_bWordOnly = bFlag; }
- int IsSrchRelaxed() const { return bLEV_Relaxed; }
+ bool IsSrchRelaxed() const { return bLEV_Relaxed; }
int GetLEVOther() const { return nLEV_OtherX; }
int GetLEVShorter() const { return nLEV_ShorterY; }
int GetLEVLonger() const { return nLEV_LongerZ; }