summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-02-22 21:42:13 +0100
committerMiklos Vajna <vmiklos@suse.cz>2013-02-22 21:43:47 +0100
commit3eaa536ae457391c3826be50b0361f8d0c13cdd3 (patch)
treef92aea6756653fa477a59a385af5f1427300f338 /sdext
parent6ecec31d334218900c9df3d2b558387a5e5f5cf1 (diff)
sdext: fix loplugin warnings
Change-Id: I4bca280b352f1df40fe75658e418f2e0cb2430e8
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/minimizer/optimizerdialog.cxx1
-rw-r--r--sdext/source/minimizer/pppoptimizerdialog.cxx2
-rw-r--r--sdext/source/pdfimport/tree/drawtreevisiting.cxx4
-rw-r--r--sdext/source/pdfimport/tree/pdfiprocessor.cxx2
-rw-r--r--sdext/source/pdfimport/tree/writertreevisiting.cxx1
-rw-r--r--sdext/source/pdfimport/wrapper/wrapper.cxx2
-rw-r--r--sdext/source/presenter/PresenterSlideShowView.cxx2
7 files changed, 3 insertions, 11 deletions
diff --git a/sdext/source/minimizer/optimizerdialog.cxx b/sdext/source/minimizer/optimizerdialog.cxx
index 711134f8f9af..9dcaf2990695 100644
--- a/sdext/source/minimizer/optimizerdialog.cxx
+++ b/sdext/source/minimizer/optimizerdialog.cxx
@@ -158,7 +158,6 @@ void OptimizerDialog::InsertRoadmapItem( const sal_Int32 nIndex, const sal_Bool
void OptimizerDialog::UpdateConfiguration()
{
sal_Int16 nInt16 = 0;
- OUString aString;
Any aAny;
Sequence< sal_Int16 > aSelectedItems;
diff --git a/sdext/source/minimizer/pppoptimizerdialog.cxx b/sdext/source/minimizer/pppoptimizerdialog.cxx
index 79c874558573..2f91c57a2b1c 100644
--- a/sdext/source/minimizer/pppoptimizerdialog.cxx
+++ b/sdext/source/minimizer/pppoptimizerdialog.cxx
@@ -147,7 +147,7 @@ void SAL_CALL PPPOptimizerDialog::dispatch( const URL& rURL,
sBuf.append( rtl::OUString("KB to ") );
sBuf.append( rtl::OUString::valueOf( nFileSizeDest >> 10 ) );
sBuf.append( rtl::OUString("KB.") );
- OUString sResult( sBuf.makeStringAndClear() );
+ sBuf.makeStringAndClear();
// mpOptimizerDialog->showMessageBox( sResult, sResult, sal_False );
}
delete mpOptimizerDialog, mpOptimizerDialog = NULL;
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
index 9a38e3d84454..7207e432e897 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
@@ -1014,7 +1014,6 @@ void DrawXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::co
// get styles for paragraphs
PropertyMap aPageProps;
PropertyMap aPageLayoutProps;
- rtl::OUStringBuffer aBuf( 64 );
aPageLayoutProps[ "fo:margin-top" ] = unitMMString( top_margin );
aPageLayoutProps[ "fo:margin-bottom" ] = unitMMString( bottom_margin );
aPageLayoutProps[ "fo:margin-left" ] = unitMMString( left_margin );
@@ -1040,9 +1039,6 @@ void DrawXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::co
elem.StyleId = m_rStyleContainer.impl_getStyleId( aMPStyle,false );
-
- rtl::OUString aMasterPageName = m_rStyleContainer.getStyleName( elem.StyleId );
-
// create styles for children
elem.applyToChildren(*this);
}
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx
index a457d476f99f..56e29c0f0971 100644
--- a/sdext/source/pdfimport/tree/pdfiprocessor.cxx
+++ b/sdext/source/pdfimport/tree/pdfiprocessor.cxx
@@ -466,8 +466,6 @@ GraphicsContext& PDFIProcessor::getTransformGlyphContext( CharGlyph& rGlyph )
geometry::RealRectangle2D rRect = rGlyph.getRect();
geometry::Matrix2D rFontMatrix = rGlyph.getFontMatrix();
- rtl::OUString tempStr( 32 );
-
basegfx::B2DHomMatrix aFontMatrix;
basegfx::unotools::homMatrixFromMatrix(
aFontMatrix,
diff --git a/sdext/source/pdfimport/tree/writertreevisiting.cxx b/sdext/source/pdfimport/tree/writertreevisiting.cxx
index 7eaabe822795..d9076290ba1a 100644
--- a/sdext/source/pdfimport/tree/writertreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/writertreevisiting.cxx
@@ -1145,7 +1145,6 @@ void WriterXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::
// get styles for paragraphs
PropertyMap aPageProps;
PropertyMap aPageLayoutProps;
- rtl::OUStringBuffer aBuf( 64 );
aPageLayoutProps[ "fo:page-width" ] = unitMMString( page_width );
aPageLayoutProps[ "fo:page-height" ] = unitMMString( page_height );
aPageLayoutProps[ "style:print-orientation" ]
diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx
index a90ba8d1e2e6..5485511eed38 100644
--- a/sdext/source/pdfimport/wrapper/wrapper.cxx
+++ b/sdext/source/pdfimport/wrapper/wrapper.cxx
@@ -484,7 +484,7 @@ int Parser::parseFontRemoveSuffix( const sal_Unicode* pCopy, const char* s, sal_
for (int i = 0; i < l; i++)
if ( pCopy[nLen - l + i] != s[i] )
return 0;
- nLen -= l;
+ nLen -= l;
return l;
}
diff --git a/sdext/source/presenter/PresenterSlideShowView.cxx b/sdext/source/presenter/PresenterSlideShowView.cxx
index 0a7920a34b57..e0ddc680c520 100644
--- a/sdext/source/presenter/PresenterSlideShowView.cxx
+++ b/sdext/source/presenter/PresenterSlideShowView.cxx
@@ -487,7 +487,7 @@ void SAL_CALL PresenterSlideShowView::setMouseCursor(::sal_Int16 nPointerShape)
awt::Rectangle SAL_CALL PresenterSlideShowView::getCanvasArea( ) throw (RuntimeException)
{
if( mxViewWindow.is() && mxTopPane.is() )
- return mxPresenterHelper->getWindowExtentsRelative( mxViewWindow, mxTopPane->getWindow() );
+ return mxPresenterHelper->getWindowExtentsRelative( mxViewWindow, mxTopPane->getWindow() );
awt::Rectangle aRectangle;