summaryrefslogtreecommitdiff
path: root/sw/source/ui/docvw/srcedtw.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/docvw/srcedtw.cxx')
-rw-r--r--sw/source/ui/docvw/srcedtw.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/ui/docvw/srcedtw.cxx b/sw/source/ui/docvw/srcedtw.cxx
index bae8278ca52f..65c6f25c02c5 100644
--- a/sw/source/ui/docvw/srcedtw.cxx
+++ b/sw/source/ui/docvw/srcedtw.cxx
@@ -72,13 +72,12 @@ static void lcl_Highlight(const OUString& rSource, SwTextPortions& aPortionList)
const sal_Unicode cLF = 0x0a;
const sal_Unicode cCR = 0x0d;
-
const sal_uInt16 nStrLen = rSource.getLength();
sal_uInt16 nInsert = 0; // number of inserted portions
sal_uInt16 nActPos = 0; // position, where '<' was found
sal_uInt16 nOffset = 0; // Offset of nActPos to '<'
sal_uInt16 nPortStart = USHRT_MAX; // for the TextPortion
- sal_uInt16 nPortEnd = 0; //
+ sal_uInt16 nPortEnd = 0;
SwTextPortion aText;
while(nActPos < nStrLen)
{
@@ -722,7 +721,7 @@ void SwSrcEditWindow::ImpDoHighlight( const OUString& rSource, sal_uInt16 nLineO
r.eType != svtools::HTMLUNKNOWN)
r.eType = svtools::HTMLUNKNOWN;
Color aColor((ColorData)SW_MOD()->GetColorConfig().GetColorValue((svtools::ColorConfigEntry)r.eType).nColor);
- sal_uInt16 nLine = nLineOff+r.nLine; //
+ sal_uInt16 nLine = nLineOff+r.nLine;
pTextEngine->SetAttrib( TextAttribFontColor( aColor ), nLine, r.nStart, r.nEnd+1, true );
}
}