diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-01-14 15:52:58 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-01-14 16:04:43 +0100 |
commit | 55b7d15ae984d4ff772e147414c775d2ad69c9f0 (patch) | |
tree | 083f3bb2e6fafcf9bfd0230e5a7bc5d95618fab6 /sw | |
parent | bf670bcd5e60eae95a6bd297391799f13e55db9d (diff) |
SwPaM::HasReadonlySel: sal_Bool -> bool
Change-Id: If4c9cb523c6ac357683522029769a82ba10667f1
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/pam.hxx | 2 | ||||
-rw-r--r-- | sw/qa/core/swdoc-test.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/crsr/pam.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx index 31e1008abbc6..9c0f04b3fee8 100644 --- a/sw/inc/pam.hxx +++ b/sw/inc/pam.hxx @@ -288,7 +288,7 @@ public: /** Is in something protected (readonly) or selection contains something protected. */ - sal_Bool HasReadonlySel( bool bFormView ) const; + bool HasReadonlySel( bool bFormView ) const; sal_Bool ContainsPosition(const SwPosition & rPos) { return *Start() <= rPos && rPos <= *End(); } diff --git a/sw/qa/core/swdoc-test.cxx b/sw/qa/core/swdoc-test.cxx index f2cc9ccde8ea..189a25cf2476 100644 --- a/sw/qa/core/swdoc-test.cxx +++ b/sw/qa/core/swdoc-test.cxx @@ -893,7 +893,7 @@ void SwDocTest::testFdo57938() aPaM.GetPoint()->nContent = 0; aPaM.GetMark()->nContent = 1; // The problem was that "a" was considered read-only, so could not be deleted. - CPPUNIT_ASSERT_EQUAL(false, bool(aPaM.HasReadonlySel(false))); + CPPUNIT_ASSERT_EQUAL(false, aPaM.HasReadonlySel(false)); } void SwDocTest::setUp() diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx index 5fbf4bcbfdb7..505477a9887c 100644 --- a/sw/source/core/crsr/pam.cxx +++ b/sw/source/core/crsr/pam.cxx @@ -590,9 +590,9 @@ static const SwFrm* lcl_FindEditInReadonlyFrm( const SwFrm& rFrm ) } /// is in protected section or selection surrounds something protected -sal_Bool SwPaM::HasReadonlySel( bool bFormView ) const +bool SwPaM::HasReadonlySel( bool bFormView ) const { - sal_Bool bRet = sal_False; + bool bRet = sal_False; Point aTmpPt; const SwCntntNode *pNd; const SwCntntFrm *pFrm; |