diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-02-20 22:38:38 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-02-20 22:39:00 +0100 |
commit | eda11cbfaf974905183ea10e4ffa89b90a401d98 (patch) | |
tree | a89a8b72565c7a6619f243449b5f8000f331e8da /vcl | |
parent | -Werror,-Wsign-compare (diff) | |
download | core-eda11cbfaf974905183ea10e4ffa89b90a401d98.tar.gz core-eda11cbfaf974905183ea10e4ffa89b90a401d98.zip |
Some cppcheck cleaning
Change-Id: I0b9d3b5f8283e2fddc96b220a755ba6bcdd11606
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/glyphs/graphite_layout.cxx | 3 |
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); |