diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-26 15:30:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-27 12:30:30 +0200 |
commit | b46f93a3c53ce15b38369eb8b127b69bad9b2143 (patch) | |
tree | f7719e3614e1d409dc6e13897e31de90bea13f3a /starmath | |
parent | 4e808f63290e3abade2a7dcea11209af56855b31 (diff) |
editeng: sal_Bool->bool
Change-Id: Ic59e48341f69b8c6e6fe77b05eeebac56a2c53e7
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/accessibility.cxx | 7 | ||||
-rw-r--r-- | starmath/source/accessibility.hxx | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index 20b455710536..7054b71285d3 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -1343,12 +1343,11 @@ sal_Bool SmTextForwarder::GetWordIndices( sal_Int32 nPara, sal_Int32 nIndex, sal return bRes; } -sal_Bool SmTextForwarder::GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nEndIndex, sal_Int32 nPara, sal_Int32 nIndex, sal_Bool bInCell ) const +bool SmTextForwarder::GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nEndIndex, sal_Int32 nPara, sal_Int32 nIndex, bool bInCell ) const { EditEngine *pEditEngine = rEditAcc.GetEditEngine(); - return pEditEngine ? - SvxEditSourceHelper::GetAttributeRun( nStartIndex, nEndIndex, *pEditEngine, nPara, nIndex, bInCell ) - : sal_False; + return pEditEngine && + SvxEditSourceHelper::GetAttributeRun( nStartIndex, nEndIndex, *pEditEngine, nPara, nIndex, bInCell ); } sal_Int32 SmTextForwarder::GetLineCount( sal_Int32 nPara ) const diff --git a/starmath/source/accessibility.hxx b/starmath/source/accessibility.hxx index 5bd092b14b62..9cc2578f512c 100644 --- a/starmath/source/accessibility.hxx +++ b/starmath/source/accessibility.hxx @@ -234,7 +234,7 @@ public: virtual OutputDevice* GetRefDevice() const; virtual sal_Bool GetIndexAtPoint( const Point&, sal_Int32& nPara, sal_Int32& nIndex ) const; virtual sal_Bool GetWordIndices( sal_Int32 nPara, sal_Int32 nIndex, sal_Int32& nStart, sal_Int32& nEnd ) const; - virtual sal_Bool GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nEndIndex, sal_Int32 nPara, sal_Int32 nIndex, sal_Bool bInCell = sal_False ) const; + virtual bool GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nEndIndex, sal_Int32 nPara, sal_Int32 nIndex, bool bInCell = false ) const; virtual sal_Int32 GetLineCount( sal_Int32 nPara ) const; virtual sal_Int32 GetLineLen( sal_Int32 nPara, sal_Int32 nLine ) const; virtual void GetLineBoundaries( /*out*/sal_Int32 &rStart, /*out*/sal_Int32 &rEnd, sal_Int32 nParagraph, sal_Int32 nLine ) const; |