diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-25 20:13:43 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-25 20:15:04 +0300 |
commit | 9a587bf74f74c8f9b18c6fe1be28e1f1c3032820 (patch) | |
tree | 451a26215b7f53a8e6c81e79b564d508151e4042 /chart2 | |
parent | 1652b8a552bb37524d6b5c8d65f77d28b3930ba6 (diff) |
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
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 8bb5b2f45dda..fe5d38c76eed 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -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() |