diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-09-29 17:54:28 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:32 +0200 |
commit | e0f9a3411a7670aff27afed46ebfa18772cdb95f (patch) | |
tree | 5e352cc3bf54fca66b0713411d9dcdb37de1f914 /vcl/source/fontsubset | |
parent | a74dec4e61e6c47439a2274254de511e537beacd (diff) |
cppcheck scope reduction in vcl/..ttcr.cxx
Diffstat (limited to 'vcl/source/fontsubset')
-rw-r--r-- | vcl/source/fontsubset/ttcr.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/vcl/source/fontsubset/ttcr.cxx b/vcl/source/fontsubset/ttcr.cxx index 4356636e90a2..169092e2ee50 100644 --- a/vcl/source/fontsubset/ttcr.cxx +++ b/vcl/source/fontsubset/ttcr.cxx @@ -292,15 +292,19 @@ int AddTable(TrueTypeCreator *_this, TrueTypeTable *table) void RemoveTable(TrueTypeCreator *_this, sal_uInt32 tag) { - int done = 0; - - if (listCount(_this->tables)) { + if (listCount(_this->tables)) + { listToFirst(_this->tables); + int done = 0; do { - if (((TrueTypeTable *) listCurrent(_this->tables))->tag == tag) { + if (((TrueTypeTable *) listCurrent(_this->tables))->tag == tag) + { listRemove(_this->tables); - } else { - if (listNext(_this->tables)) { + } + else + { + if (listNext(_this->tables)) + { done = 1; } } |