diff options
Diffstat (limited to 'xfa/src/fdp/src/fde/fde_object.cpp')
-rw-r--r-- | xfa/src/fdp/src/fde/fde_object.cpp | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/xfa/src/fdp/src/fde/fde_object.cpp b/xfa/src/fdp/src/fde/fde_object.cpp index 447067db29..3ae84a7df7 100644 --- a/xfa/src/fdp/src/fde/fde_object.cpp +++ b/xfa/src/fdp/src/fde/fde_object.cpp @@ -6,22 +6,20 @@ #include "../../../foxitlib.h"
#include "fde_object.h"
-IFDE_Pen* IFDE_Pen::Create()
-{
- return new CFDE_Pen();
+IFDE_Pen* IFDE_Pen::Create() {
+ return new CFDE_Pen();
}
-IFDE_Brush* IFDE_Brush::Create(int32_t iType)
-{
- switch (iType) {
- case FDE_BRUSHTYPE_Solid:
- return new CFDE_SolidBrush;
- case FDE_BRUSHTYPE_Hatch:
- return new CFDE_HatchBrush;
- case FDE_BRUSHTYPE_Texture:
- return new CFDE_TextureBrush;
- case FDE_BRUSHTYPE_LinearGradient:
- return new CFDE_LinearBrush;
- default:
- return NULL;
- }
+IFDE_Brush* IFDE_Brush::Create(int32_t iType) {
+ switch (iType) {
+ case FDE_BRUSHTYPE_Solid:
+ return new CFDE_SolidBrush;
+ case FDE_BRUSHTYPE_Hatch:
+ return new CFDE_HatchBrush;
+ case FDE_BRUSHTYPE_Texture:
+ return new CFDE_TextureBrush;
+ case FDE_BRUSHTYPE_LinearGradient:
+ return new CFDE_LinearBrush;
+ default:
+ return NULL;
+ }
}
|