summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Weissenbacher <p.weissenbacher@gmail.com>2012-04-12 21:07:21 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-04-13 10:11:55 +0200
commit63585de969d3892ddb6034cfa05284e30f97a304 (patch)
treefc2456dc2158fc8534d61d77af7937011391f236
parentcaaa4dc8fd7938d333a26562dfb5db6ef76ffd7f (diff)
Convert macro to local const variable
-rw-r--r--sw/source/core/text/frminf.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/text/frminf.cxx b/sw/source/core/text/frminf.cxx
index 93b4c01f17fa..a9b3c48f3728 100644
--- a/sw/source/core/text/frminf.cxx
+++ b/sw/source/core/text/frminf.cxx
@@ -279,13 +279,13 @@ sal_Bool SwTxtFrmInfo::IsBullet( xub_StrLen nTxtStart ) const
// All lines (except for the first one) have the same left margin.
// We do not want to be so picky and work with a tolerance of TOLERANCE twips.
-#define TOLERANCE 20
-
SwTwips SwTxtFrmInfo::GetFirstIndent() const
{
SwTxtSizeInfo aInf( (SwTxtFrm*)pFrm );
SwTxtCursor aLine( (SwTxtFrm*)pFrm, &aInf );
const SwTwips nFirst = GetLineStart( aLine );
+ const SwTwips TOLERANCE = 20;
+
if( !aLine.Next() )
return 0;