Kaydet (Commit) e12d21fe authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Aligh this correctly...

Also use 4-char tab space etc.

Change-Id: I5ca007f58a588823ce9961af154cd97c25dd6f9b
üst 8f6a1b50
...@@ -810,11 +810,13 @@ comphelper::PropertyMapEntry const * ImplGetAdditionalWriterDrawingDefaultsPrope ...@@ -810,11 +810,13 @@ comphelper::PropertyMapEntry const * ImplGetAdditionalWriterDrawingDefaultsPrope
typedef ::boost::unordered_map< OUString, sal_uInt32, OUStringHash > UHashMapImpl; typedef ::boost::unordered_map< OUString, sal_uInt32, OUStringHash > UHashMapImpl;
namespace { namespace {
static const UHashMapImpl &GetUHashImpl()
{ const UHashMapImpl& GetUHashImpl()
{
static UHashMapImpl aImpl(63); static UHashMapImpl aImpl(63);
static bool bInited = false; static bool bInited = false;
if (!bInited) { if (!bInited)
{
const struct { const char *name; sal_Int32 length; sal_uInt32 id; } aInit[] = { const struct { const char *name; sal_Int32 length; sal_uInt32 id; } aInit[] = {
{ RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.RectangleShape"), OBJ_RECT }, { RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.RectangleShape"), OBJ_RECT },
{ RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.EllipseShape"), OBJ_CIRC }, { RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.EllipseShape"), OBJ_CIRC },
...@@ -850,12 +852,15 @@ namespace { ...@@ -850,12 +852,15 @@ namespace {
{ RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.Shape3DPolygonObject"), E3D_POLYGONOBJ_ID | E3D_INVENTOR_FLAG }, { RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.Shape3DPolygonObject"), E3D_POLYGONOBJ_ID | E3D_INVENTOR_FLAG },
{ RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.OpenGLObject"), OBJ_OPENGL }, { RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.OpenGLObject"), OBJ_OPENGL },
}; };
for (sal_uInt32 i = 0; i < sizeof(aInit)/sizeof(aInit[0]); i++) for (sal_uInt32 i = 0; i < sizeof(aInit)/sizeof(aInit[0]); i++)
aImpl[OUString( aInit[i].name, aInit[i].length, RTL_TEXTENCODING_ASCII_US ) ] = aInit[i].id; aImpl[OUString( aInit[i].name, aInit[i].length, RTL_TEXTENCODING_ASCII_US ) ] = aInit[i].id;
bInited = true; bInited = true;
} }
return aImpl; return aImpl;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment