Kaydet (Commit) 9a587bf7 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

No need for XShape dumping (for unit testing) for non-desktop

We don't do unit testing when cross-compiling anyway. (And even if we
did, in some magic fashion, I don't think we would want
debugging/testing functionality like this dumping thing to be dragged
in into a production build of an app. It's not a huge amount of code,
but still.)

Change-Id: I12bc552b10452263572074aae865138ff30fbfc8
üst 1652b8a5
......@@ -3055,6 +3055,9 @@ uno::Sequence< OUString > ChartView::getAvailableServiceNames() throw (uno::Runt
OUString ChartView::dump() throw (uno::RuntimeException, std::exception)
{
#if HAVE_FEATURE_DESKTOP
// Used for unit tests only, no need to drag in this when cross-compiling
// for non-desktop
impl_updateView();
if(!mxRootShape.is())
mxRootShape = AbstractShapeFactory::getOrCreateShapeFactory(m_xShapeFactory)
......@@ -3067,7 +3070,9 @@ OUString ChartView::dump() throw (uno::RuntimeException, std::exception)
XShapeDumper dumper;
return dumper.dump(mxRootShape);
}
#else
return OUString();
#endif
}
void ChartView::setViewDirty()
......
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