summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oox/inc/drawingml/chart/converterbase.hxx5
-rw-r--r--oox/source/drawingml/chart/converterbase.cxx4
-rw-r--r--package/inc/ByteGrabber.hxx2
-rw-r--r--package/inc/ZipFile.hxx2
-rw-r--r--package/source/xstor/xstorage.cxx4
-rw-r--r--package/source/xstor/xstorage.hxx2
-rw-r--r--package/source/zipapi/ByteGrabber.cxx3
-rw-r--r--package/source/zipapi/ZipFile.cxx6
-rw-r--r--reportdesign/source/filter/xml/xmlExport.cxx5
-rw-r--r--reportdesign/source/filter/xml/xmlExport.hxx2
10 files changed, 12 insertions, 23 deletions
diff --git a/oox/inc/drawingml/chart/converterbase.hxx b/oox/inc/drawingml/chart/converterbase.hxx
index 9393a302e05b..df6f5ea62ee2 100644
--- a/oox/inc/drawingml/chart/converterbase.hxx
+++ b/oox/inc/drawingml/chart/converterbase.hxx
@@ -136,9 +136,8 @@ public:
Returns true, if a manual position and size could be calculated. */
bool convertFromModel( PropertySet& rPropSet );
- /** Tries to set the position from the contained OOXML layout model.
- Returns true, if a manual position could be calculated. */
- bool convertFromModel(
+ /** Tries to set the position from the contained OOXML layout model. */
+ void convertFromModel(
const css::uno::Reference< css::drawing::XShape >& rxShape,
double fRotationAngle );
bool getAutoLayout(){return mrModel.mbAutoLayout;}
diff --git a/oox/source/drawingml/chart/converterbase.cxx b/oox/source/drawingml/chart/converterbase.cxx
index 4f66eb0043d8..8bc82e0ec96d 100644
--- a/oox/source/drawingml/chart/converterbase.cxx
+++ b/oox/source/drawingml/chart/converterbase.cxx
@@ -385,7 +385,7 @@ bool LayoutConverter::convertFromModel( PropertySet& rPropSet )
return false;
}
-bool LayoutConverter::convertFromModel( const Reference< XShape >& rxShape, double fRotationAngle )
+void LayoutConverter::convertFromModel( const Reference< XShape >& rxShape, double fRotationAngle )
{
if( !mrModel.mbAutoLayout )
{
@@ -407,10 +407,8 @@ bool LayoutConverter::convertFromModel( const Reference< XShape >& rxShape, doub
aShapePos.Y += static_cast< sal_Int32 >( fSin * aShapeSize.Width + 0.5 );
// set the resulting position at the shape
rxShape->setPosition( aShapePos );
- return true;
}
}
- return false;
}
} // namespace chart
diff --git a/package/inc/ByteGrabber.hxx b/package/inc/ByteGrabber.hxx
index ffa112c871ab..195606539e96 100644
--- a/package/inc/ByteGrabber.hxx
+++ b/package/inc/ByteGrabber.hxx
@@ -51,7 +51,7 @@ public:
sal_Int32 SAL_CALL readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException);
// XSeekable
- sal_Int64 SAL_CALL seek( sal_Int64 location )
+ void SAL_CALL seek( sal_Int64 location )
throw(css::lang::IllegalArgumentException, css::io::IOException, css::uno::RuntimeException);
sal_Int64 SAL_CALL getPosition( )
throw(css::io::IOException, css::uno::RuntimeException);
diff --git a/package/inc/ZipFile.hxx b/package/inc/ZipFile.hxx
index d49fcab233bc..624593f39075 100644
--- a/package/inc/ZipFile.hxx
+++ b/package/inc/ZipFile.hxx
@@ -180,7 +180,7 @@ protected:
throw(css::io::IOException, css::packages::zip::ZipException, css::uno::RuntimeException);
sal_Int32 findEND()
throw(css::io::IOException, css::packages::zip::ZipException, css::uno::RuntimeException);
- sal_Int32 recover()
+ void recover()
throw(css::io::IOException, css::packages::zip::ZipException, css::uno::RuntimeException);
};
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index 669d8075d2cd..1e4d79f700f2 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -1409,7 +1409,7 @@ SotElement_Impl* OStorage_Impl::InsertStream( const OUString& aName, bool bEncr
return pNewElement;
}
-SotElement_Impl* OStorage_Impl::InsertRawStream( const OUString& aName, const uno::Reference< io::XInputStream >& xInStream )
+void OStorage_Impl::InsertRawStream( const OUString& aName, const uno::Reference< io::XInputStream >& xInStream )
{
// insert of raw stream means insert and commit
SAL_WARN_IF( !m_xPackage.is(), "package.xstor", "Not possible to refer to package as to factory!" );
@@ -1447,8 +1447,6 @@ SotElement_Impl* OStorage_Impl::InsertRawStream( const OUString& aName, const un
m_aChildrenList.push_back( pNewElement );
m_bIsModified = true;
m_bBroadcastModified = true;
-
- return pNewElement;
}
OStorage_Impl* OStorage_Impl::CreateNewStorageImpl( sal_Int32 nStorageMode )
diff --git a/package/source/xstor/xstorage.hxx b/package/source/xstor/xstorage.hxx
index e5130e288eeb..c0e7e48fec15 100644
--- a/package/source/xstor/xstorage.hxx
+++ b/package/source/xstor/xstorage.hxx
@@ -234,7 +234,7 @@ struct OStorage_Impl
SotElement_Impl* FindElement( const OUString& rName );
SotElement_Impl* InsertStream( const OUString& aName, bool bEncr );
- SotElement_Impl* InsertRawStream( const OUString& aName, const css::uno::Reference< css::io::XInputStream >& xInStream );
+ void InsertRawStream( const OUString& aName, const css::uno::Reference< css::io::XInputStream >& xInStream );
OStorage_Impl* CreateNewStorageImpl( sal_Int32 nStorageMode );
SotElement_Impl* InsertStorage( const OUString& aName, sal_Int32 nStorageMode );
diff --git a/package/source/zipapi/ByteGrabber.cxx b/package/source/zipapi/ByteGrabber.cxx
index 4fb1f029e1b4..a6f23645cc60 100644
--- a/package/source/zipapi/ByteGrabber.cxx
+++ b/package/source/zipapi/ByteGrabber.cxx
@@ -62,7 +62,7 @@ sal_Int32 SAL_CALL ByteGrabber::readBytes( uno::Sequence< sal_Int8 >& aData,
}
// XSeekable chained...
-sal_Int64 SAL_CALL ByteGrabber::seek( sal_Int64 location )
+void SAL_CALL ByteGrabber::seek( sal_Int64 location )
throw(lang::IllegalArgumentException, io::IOException, uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -74,7 +74,6 @@ sal_Int64 SAL_CALL ByteGrabber::seek( sal_Int64 location )
if (location > nLen )
location = nLen;
xSeek->seek( location );
- return location;
}
else
throw io::IOException(THROW_WHERE );
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx
index 236df7192364..670513b270a6 100644
--- a/package/source/zipapi/ZipFile.cxx
+++ b/package/source/zipapi/ZipFile.cxx
@@ -860,7 +860,7 @@ sal_Int32 ZipFile::readCEN()
return nCenPos;
}
-sal_Int32 ZipFile::recover()
+void ZipFile::recover()
throw(IOException, ZipException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -872,7 +872,7 @@ sal_Int32 ZipFile::recover()
{
nLength = aGrabber.getLength();
if (nLength == 0 || nLength < ENDHDR)
- return -1;
+ return;
aGrabber.seek( 0 );
@@ -1021,8 +1021,6 @@ sal_Int32 ZipFile::recover()
nGenPos += nPos;
aGrabber.seek( nGenPos );
}
-
- return 0;
}
catch ( IllegalArgumentException& )
{
diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx
index 4dd2bf449527..4207d4dcecb8 100644
--- a/reportdesign/source/filter/xml/xmlExport.cxx
+++ b/reportdesign/source/filter/xml/xmlExport.cxx
@@ -1024,9 +1024,8 @@ void ORptExport::exportStyleName(XPropertySet* _xProp,SvXMLAttributeList& _rAtt,
}
}
-bool ORptExport::exportGroup(const Reference<XReportDefinition>& _xReportDefinition,sal_Int32 _nPos,bool _bExportAutoStyle)
+void ORptExport::exportGroup(const Reference<XReportDefinition>& _xReportDefinition,sal_Int32 _nPos,bool _bExportAutoStyle)
{
- bool bGroupExported = false;
if ( _xReportDefinition.is() )
{
Reference< XGroups > xGroups = _xReportDefinition->getGroups();
@@ -1035,7 +1034,6 @@ bool ORptExport::exportGroup(const Reference<XReportDefinition>& _xReportDefinit
sal_Int32 nCount = xGroups->getCount();
if ( _nPos >= 0 && _nPos < nCount )
{
- bGroupExported = true;
Reference<XGroup> xGroup(xGroups->getByIndex(_nPos),uno::UNO_QUERY);
OSL_ENSURE(xGroup.is(),"No Group prepare for GPF");
if ( _bExportAutoStyle )
@@ -1116,7 +1114,6 @@ bool ORptExport::exportGroup(const Reference<XReportDefinition>& _xReportDefinit
}
}
}
- return bGroupExported;
}
void ORptExport::exportAutoStyle(XPropertySet* _xProp,const Reference<XFormattedField>& _xParentFormattedField)
diff --git a/reportdesign/source/filter/xml/xmlExport.hxx b/reportdesign/source/filter/xml/xmlExport.hxx
index 4d8a343feade..7a6213aa4e13 100644
--- a/reportdesign/source/filter/xml/xmlExport.hxx
+++ b/reportdesign/source/filter/xml/xmlExport.hxx
@@ -128,7 +128,7 @@ private:
void exportFunction(const Reference< XFunction>& _xFunction);
void exportMasterDetailFields(const Reference<XReportComponent>& _xReportComponet);
void exportComponent(const Reference<XReportComponent>& _xReportComponent);
- bool exportGroup(const Reference<XReportDefinition>& _xReportDefinition,sal_Int32 _nPos,bool _bExportAutoStyle = false);
+ void exportGroup(const Reference<XReportDefinition>& _xReportDefinition,sal_Int32 _nPos,bool _bExportAutoStyle = false);
void exportStyleName(XPropertySet* _xProp,SvXMLAttributeList& _rAtt,const OUString& _sName);
void exportSection(const Reference<XSection>& _xProp,bool bHeader = false);
void exportContainer(const Reference< XSection>& _xSection);