diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-11-29 17:21:04 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-11-29 17:21:04 +0100 |
commit | 621687e8edae5074bd822e46755c17bb33fbe075 (patch) | |
tree | ea517011ca36e7b2137158eafc844080280a9eb3 /filter | |
parent | 39a33a548b155d14a2ad8e87b54aaab5937fdb0a (diff) |
Rewrite some (trivial) assignments inside if/while conditions: filter
Change-Id: I8985f24972d0efd8450de930102ce82cd383b459
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/ipbm/ipbm.cxx | 3 | ||||
-rw-r--r-- | filter/source/graphicfilter/iras/iras.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/filter/source/graphicfilter/ipbm/ipbm.cxx b/filter/source/graphicfilter/ipbm/ipbm.cxx index 7cdc3e1cd795..4a2961ec0cb3 100644 --- a/filter/source/graphicfilter/ipbm/ipbm.cxx +++ b/filter/source/graphicfilter/ipbm/ipbm.cxx @@ -80,7 +80,8 @@ bool PBMReader::ReadPBM(Graphic & rGraphic ) // read header: - if ( !( mbStatus = ImplReadHeader() ) ) + mbStatus = ImplReadHeader(); + if ( !mbStatus ) return false; if ( ( mnMaxVal == 0 ) || ( mnWidth <= 0 ) || ( mnHeight <= 0 ) ) diff --git a/filter/source/graphicfilter/iras/iras.cxx b/filter/source/graphicfilter/iras/iras.cxx index a40202c63928..19139a89eb79 100644 --- a/filter/source/graphicfilter/iras/iras.cxx +++ b/filter/source/graphicfilter/iras/iras.cxx @@ -101,7 +101,8 @@ bool RASReader::ReadRAS(Graphic & rGraphic) // Kopf einlesen: - if ( !( mbStatus = ImplReadHeader() ) ) + mbStatus = ImplReadHeader(); + if ( !mbStatus ) return false; maBmp = Bitmap( Size( mnWidth, mnHeight ), mnDstBitsPerPix ); |