summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-02-20 22:38:38 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-02-20 22:39:00 +0100
commiteda11cbfaf974905183ea10e4ffa89b90a401d98 (patch)
treea89a8b72565c7a6619f243449b5f8000f331e8da /vcl
parent-Werror,-Wsign-compare (diff)
downloadcore-eda11cbfaf974905183ea10e4ffa89b90a401d98.tar.gz
core-eda11cbfaf974905183ea10e4ffa89b90a401d98.zip
Some cppcheck cleaning
Change-Id: I0b9d3b5f8283e2fddc96b220a755ba6bcdd11606
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/glyphs/graphite_layout.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx
index 7b663bd87ee1..5183c71171a6 100644
--- a/vcl/source/glyphs/graphite_layout.cxx
+++ b/vcl/source/glyphs/graphite_layout.cxx
@@ -526,11 +526,10 @@ void GraphiteLayout::clear()
// This method shouldn't be called on windows, since it needs the dc reset
bool GraphiteLayout::LayoutText(ImplLayoutArgs & rArgs)
{
- gr_segment * pSegment = NULL;
bool success = true;
if (rArgs.mnMinCharPos < rArgs.mnEndCharPos)
{
- pSegment = CreateSegment(rArgs);
+ gr_segment * pSegment = CreateSegment(rArgs);
if (!pSegment)
return false;
success = LayoutGlyphs(rArgs, pSegment);