summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-04-02 07:34:56 +0200
committerDavid Tardon <dtardon@redhat.com>2013-04-02 07:39:16 +0200
commitf38c4f138c6ec810b26fcf2064f64e64eb14129b (patch)
treed0daca7c1a6e7749ad235c552887b39ef52dbbf7 /svx
parent80e187b58a2def63f8e779214adff3cf64294c8d (diff)
try to fix windows tb with pch
C:/lo/gerrit_core/solver/wntmsci13.pro/inc\vcl/lineinfo.hxx(39) : error C2872: 'LineStyle' : ambiguous symbol could be 'C:/lo/gerrit_core/solver/wntmsci13.pro/inc\vcl/vclenum.hxx(80) : LineStyle' or 'C:/lo/gerrit_core/solver/wntmsci13.pro/inc/offapi om/sun/star/drawing/LineStyle.hdl(13) : com::sun::star::drawing::LineStyle' ... make[1]: *** [C:/lo/gerrit_core/workdir/wntmsci13.pro/PrecompiledHeader/nodebug/precompiled_sd.hxx.gch] Error 2 WTH do we have 'using namespace' in _new_ code, anyway? Change-Id: If149653f0a7a4a0061f48e866b30ced120f8bc5e
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/svx/graphichelper.hxx5
-rw-r--r--svx/source/core/graphichelper.cxx4
2 files changed, 4 insertions, 5 deletions
diff --git a/svx/inc/svx/graphichelper.hxx b/svx/inc/svx/graphichelper.hxx
index 1d9e9e391e23..650a300b6da6 100644
--- a/svx/inc/svx/graphichelper.hxx
+++ b/svx/inc/svx/graphichelper.hxx
@@ -25,16 +25,13 @@
#include <com/sun/star/drawing/XShape.hpp>
-using namespace css::uno;
-using namespace css::drawing;
-
class SVX_DLLPUBLIC GraphicHelper
{
public:
static void GetPreferedExtension( OUString& rExtension, const Graphic& rGraphic );
static OUString ExportGraphic( const Graphic& rGraphic, const OUString& rGraphicName );
- static void SaveShapeAsGraphic( const Reference< XShape >& xShape );
+ static void SaveShapeAsGraphic( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape );
};
diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx
index 4671c912963a..deb3397d0020 100644
--- a/svx/source/core/graphichelper.cxx
+++ b/svx/source/core/graphichelper.cxx
@@ -56,6 +56,8 @@ using namespace css::ui::dialogs;
using namespace sfx2;
+namespace drawing = com::sun::star::drawing;
+
void GraphicHelper::GetPreferedExtension( OUString& rExtension, const Graphic& rGraphic )
{
OUString aExtension = "png";
@@ -196,7 +198,7 @@ OUString GraphicHelper::ExportGraphic( const Graphic& rGraphic, const OUString&
return OUString();
}
-void GraphicHelper::SaveShapeAsGraphic( const Reference< XShape >& xShape )
+void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xShape )
{
try
{