Kaydet (Commit) 55b7d15a authored tarafından Miklos Vajna's avatar Miklos Vajna

SwPaM::HasReadonlySel: sal_Bool -> bool

Change-Id: If4c9cb523c6ac357683522029769a82ba10667f1
üst bf670bcd
......@@ -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(); }
......
......@@ -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()
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment