loplugin:unusedmethods unused return value in sdext
Change-Id: Ie919a094630da57371b13081ab2f04984dd96c78
This commit is contained in:
@@ -592,10 +592,8 @@ static void DispatchURL( Reference< XComponentContext > xContext, const OUString
|
||||
|
||||
|
||||
|
||||
bool ImpOptimizer::Optimize( const Sequence< PropertyValue >& rArguments )
|
||||
void ImpOptimizer::Optimize( const Sequence< PropertyValue >& rArguments )
|
||||
{
|
||||
bool bRet = true;
|
||||
|
||||
if ( mxModel.is() )
|
||||
{
|
||||
sal_Int64 nEstimatedFileSize = 0;
|
||||
@@ -692,7 +690,7 @@ bool ImpOptimizer::Optimize( const Sequence< PropertyValue >& rArguments )
|
||||
if ( xStorable.is() && !xStorable->isReadonly() )
|
||||
{
|
||||
mxModel->lockControllers();
|
||||
bRet = Optimize();
|
||||
Optimize();
|
||||
mxModel->unlockControllers();
|
||||
|
||||
// clearing undo stack:
|
||||
@@ -741,9 +739,6 @@ bool ImpOptimizer::Optimize( const Sequence< PropertyValue >& rArguments )
|
||||
DispatchStatus();
|
||||
}
|
||||
}
|
||||
else
|
||||
bRet = false;
|
||||
return bRet;
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@@ -67,7 +67,7 @@ public:
|
||||
const css::uno::Reference< css::frame::XModel >& rxModel );
|
||||
~ImpOptimizer();
|
||||
|
||||
bool Optimize( const css::uno::Sequence< css::beans::PropertyValue >& rArguments );
|
||||
void Optimize( const css::uno::Sequence< css::beans::PropertyValue >& rArguments );
|
||||
void DispatchStatus();
|
||||
};
|
||||
|
||||
|
@@ -338,7 +338,7 @@ InformationDialog::~InformationDialog()
|
||||
|
||||
|
||||
|
||||
bool InformationDialog::execute()
|
||||
void InformationDialog::execute()
|
||||
{
|
||||
UnoDialog::execute();
|
||||
|
||||
@@ -352,7 +352,6 @@ bool InformationDialog::execute()
|
||||
mrbOpenNewDocument = bOpenNewDocument;
|
||||
}
|
||||
}
|
||||
return mbStatus;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -52,7 +52,7 @@ public:
|
||||
bool& bOpenNewDocument, const sal_Int64& nSourceSize, const sal_Int64& nDestSize, const sal_Int64& nApproxDest );
|
||||
~InformationDialog();
|
||||
|
||||
bool execute();
|
||||
void execute();
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -249,14 +249,13 @@ OptimizerDialog::~OptimizerDialog()
|
||||
|
||||
|
||||
|
||||
bool OptimizerDialog::execute()
|
||||
void OptimizerDialog::execute()
|
||||
{
|
||||
Reference< XItemEventBroadcaster > maRoadmapBroadcaster( mxRoadmapControl, UNO_QUERY_THROW );
|
||||
maRoadmapBroadcaster->addItemListener( mxItemListener );
|
||||
UnoDialog::execute();
|
||||
UpdateConfiguration(); // taking actual control settings for the configuration
|
||||
maRoadmapBroadcaster->removeItemListener( mxItemListener );
|
||||
return mbStatus;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -65,7 +65,7 @@ public:
|
||||
css::uno::Reference< css::frame::XDispatch > rxStatusDispatcher );
|
||||
~OptimizerDialog();
|
||||
|
||||
bool execute();
|
||||
void execute();
|
||||
|
||||
sal_Int16 mnCurrentStep;
|
||||
sal_Int16 mnTabIndex;
|
||||
|
@@ -273,7 +273,7 @@ struct PDFObject : public PDFContainer
|
||||
virtual PDFEntry* clone() const override;
|
||||
|
||||
// writes only the contained stream, deflated if necessary
|
||||
bool writeStream( EmitContext& rContext, const PDFFile* pPDFFile ) const;
|
||||
void writeStream( EmitContext& rContext, const PDFFile* pPDFFile ) const;
|
||||
|
||||
private:
|
||||
// returns true if stream is deflated
|
||||
|
@@ -74,11 +74,11 @@ struct EmitImplData
|
||||
m_nDecryptGeneration( 0 )
|
||||
{}
|
||||
~EmitImplData() {}
|
||||
bool decrypt( const sal_uInt8* pInBuffer, sal_uInt32 nLen, sal_uInt8* pOutBuffer,
|
||||
void decrypt( const sal_uInt8* pInBuffer, sal_uInt32 nLen, sal_uInt8* pOutBuffer,
|
||||
unsigned int nObject, unsigned int nGeneration ) const
|
||||
{
|
||||
const PDFFile* pFile = dynamic_cast<const PDFFile*>(m_pObjectContainer);
|
||||
return pFile && pFile->decrypt( pInBuffer, nLen, pOutBuffer, nObject, nGeneration );
|
||||
pFile && pFile->decrypt( pInBuffer, nLen, pOutBuffer, nObject, nGeneration );
|
||||
}
|
||||
|
||||
void setDecryptObject( unsigned int nObject, unsigned int nGeneration )
|
||||
@@ -769,9 +769,8 @@ static void unzipToBuffer( char* pBegin, unsigned int nLen,
|
||||
}
|
||||
}
|
||||
|
||||
bool PDFObject::writeStream( EmitContext& rWriteContext, const PDFFile* pParsedFile ) const
|
||||
void PDFObject::writeStream( EmitContext& rWriteContext, const PDFFile* pParsedFile ) const
|
||||
{
|
||||
bool bSuccess = false;
|
||||
if( m_pStream )
|
||||
{
|
||||
char* pStream = nullptr;
|
||||
@@ -788,7 +787,6 @@ bool PDFObject::writeStream( EmitContext& rWriteContext, const PDFFile* pParsedF
|
||||
rWriteContext.write( pStream, nBytes );
|
||||
rtl_freeMemory( pStream );
|
||||
}
|
||||
return bSuccess;
|
||||
}
|
||||
|
||||
bool PDFObject::emit( EmitContext& rWriteContext ) const
|
||||
|
@@ -326,19 +326,15 @@ bool PresenterPaneBorderPainter::ProvideTheme (const Reference<rendering::XCanva
|
||||
return bModified;
|
||||
}
|
||||
|
||||
bool PresenterPaneBorderPainter::ProvideTheme()
|
||||
void PresenterPaneBorderPainter::ProvideTheme()
|
||||
{
|
||||
if (mpTheme.get() == nullptr)
|
||||
{
|
||||
// Create a theme without bitmaps (no canvas => no bitmaps).
|
||||
return ProvideTheme(nullptr);
|
||||
ProvideTheme(nullptr);
|
||||
}
|
||||
else
|
||||
{
|
||||
// When there already is a theme then without a canvas we can not
|
||||
// add anything new.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void PresenterPaneBorderPainter::SetTheme (const std::shared_ptr<PresenterTheme>& rpTheme)
|
||||
|
@@ -135,7 +135,7 @@ private:
|
||||
*/
|
||||
bool ProvideTheme (
|
||||
const css::uno::Reference<css::rendering::XCanvas>& rxCanvas);
|
||||
bool ProvideTheme();
|
||||
void ProvideTheme();
|
||||
|
||||
void ThrowIfDisposed() const
|
||||
throw (css::lang::DisposedException);
|
||||
|
Reference in New Issue
Block a user