summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2009-07-02 20:25:22 -0400
committerKohei Yoshida <kyoshida@novell.com>2009-07-02 20:25:22 -0400
commita0d67e4778cb4d05905f73786dd0e235c2a04461 (patch)
treee121e3b0fac87bfc8733b7664ed29dcb6ae5ac49
parentb43242ba456f09293fe8d29d153a10185b2bab3a (diff)
Added proper return statements & compiler flags.
-rw-r--r--cmake/CMakeLists.txt3
-rw-r--r--source/dpsource.cxx8
2 files changed, 11 insertions, 0 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index 7f711f9..22a47e7 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -3,5 +3,8 @@ project(DP_SOURCE_EXTENSION)
include_directories(../inc /usr/lib/ooo3/solver/inc /usr/lib/ooo3/solver/inc/offuh)
add_definitions(-DUNX -DGCC -DLINUX -DCPPU_ENV=gcc4 -DHAVE_GCC_VISIBILITY_FEATURE)
+set(CMAKE_BUILD_TYPE debug)
+set(CMAKE_C_FLAGS_DEBUG "-g -Wall")
+set(CMAKE_CXX_FLAGS_DEBUG "-g -Wall")
add_library(test SHARED ../source/dpsource.cxx)
diff --git a/source/dpsource.cxx b/source/dpsource.cxx
index 79e15ec..21434f2 100644
--- a/source/dpsource.cxx
+++ b/source/dpsource.cxx
@@ -31,6 +31,7 @@ SourceProvider::~SourceProvider()
Reference<XPropertySetInfo> SourceProvider::getPropertySetInfo() throw (RuntimeException)
{
+ return Reference<XPropertySetInfo>();
}
void SourceProvider::setPropertyValue(const OUString& aPropertyName, const Any& aValue)
@@ -41,6 +42,7 @@ void SourceProvider::setPropertyValue(const OUString& aPropertyName, const Any&
Any SourceProvider::getPropertyValue(const OUString& PropertyName)
throw (UnknownPropertyException, WrappedTargetException, RuntimeException)
{
+ return Any();
}
void SourceProvider::addPropertyChangeListener(
@@ -71,34 +73,40 @@ void SourceProvider::removeVetoableChangeListener(
OUString SourceProvider::getImplementationName() throw (RuntimeException)
{
+ return OUString();
}
sal_Bool SourceProvider::supportsService(const OUString& ServiceName)
throw (RuntimeException)
{
+ return false;
}
Sequence<OUString> SourceProvider::getSupportedServiceNames()
throw (RuntimeException)
{
+ return Sequence<OUString>();
}
// XDataPilotResults
Sequence< Sequence<DataResult> > SourceProvider::getResults() throw (RuntimeException)
{
+ return Sequence< Sequence<DataResult> >();
}
// XDimensionsSupplier
Reference<XNameAccess> SourceProvider::getDimensions() throw (RuntimeException)
{
+ return Reference<XNameAccess>();
}
// DrillDownDataSupplier
Sequence< Sequence<Any> > SourceProvider::getDrillDownData(
const Sequence<DataPilotFieldFilter>& aFilters) throw (RuntimeException)
{
+ return Sequence< Sequence<Any> >();
}
// Refreshable