diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-10 09:25:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-10 09:25:27 +0000 |
commit | 984b7fdc6b364565f11c9354e767e34369d2dd2d (patch) | |
tree | be81a59ec09bf1a0acfc8199aea859647d7c5230 /hwpfilter | |
parent | remove SVX_LIGHT macro (diff) | |
download | core-984b7fdc6b364565f11c9354e767e34369d2dd2d.tar.gz core-984b7fdc6b364565f11c9354e767e34369d2dd2d.zip |
unroll this to help out simple minded compiler
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/drawing.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/hwpfilter/source/drawing.h b/hwpfilter/source/drawing.h index 8e734edd7a69..b3835d216980 100644 --- a/hwpfilter/source/drawing.h +++ b/hwpfilter/source/drawing.h @@ -422,6 +422,7 @@ HWPDODefaultFunc(int , HWPDrawingObject * , int cmd, void *, int) static int HWPDOLineFunc(int type, HWPDrawingObject * hdo, int cmd, void *argp, int argv) { + int ret = true; switch (cmd) { case OBJFUNC_LOAD: @@ -432,11 +433,13 @@ HWPDOLineFunc(int type, HWPDrawingObject * hdo, int cmd, void *argp, int argv) return OBJRET_FILE_ERROR; if (!SkipUnusedField()) return OBJRET_FILE_ERROR; - return OBJRET_FILE_NO_PRIVATE_BLOCK_2; + ret = OBJRET_FILE_NO_PRIVATE_BLOCK_2; + break; default: - return HWPDODefaultFunc(type, hdo, cmd, argp, argv); + ret = HWPDODefaultFunc(type, hdo, cmd, argp, argv); + break; } - return true; + return ret; } @@ -509,14 +512,17 @@ HWPDOArcFunc(int type, HWPDrawingObject * hdo, int cmd, void *argp, int argv) static int HWPDOArc2Func(int type, HWPDrawingObject * hdo, int cmd, void *argp, int argv) { + int ret = true; switch (cmd) { case OBJFUNC_LOAD: - return OBJRET_FILE_NO_PRIVATE_BLOCK; + ret = OBJRET_FILE_NO_PRIVATE_BLOCK; + break; default: - return HWPDODefaultFunc(type, hdo, cmd, argp, argv); + ret = HWPDODefaultFunc(type, hdo, cmd, argp, argv); + break; } - return true; + return ret; } |