[Libreoffice-commits] .: cppcanvas/source svtools/source vcl/unx
Norbert Thiebaud
nthiebaud at kemper.freedesktop.org
Sun Oct 10 02:40:52 PDT 2010
cppcanvas/source/uno/uno_mtfrenderer.cxx | 2 +-
cppcanvas/source/uno/uno_mtfrenderer.hxx | 2 +-
svtools/source/control/ruler.cxx | 4 ++--
vcl/unx/source/plugadapt/salplug.cxx | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 195e3c856035ecf0efb512ce44fa679203224984
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Sun Oct 10 04:25:31 2010 -0500
squash misc warnings
diff --git a/cppcanvas/source/uno/uno_mtfrenderer.cxx b/cppcanvas/source/uno/uno_mtfrenderer.cxx
index a5ba6e6..03a4ee0 100644
--- a/cppcanvas/source/uno/uno_mtfrenderer.cxx
+++ b/cppcanvas/source/uno/uno_mtfrenderer.cxx
@@ -32,7 +32,7 @@
using namespace ::com::sun::star;
-void MtfRenderer::setMetafile (const uno::Sequence< sal_Int8 >& rMtf) throw (uno::RuntimeException)
+void MtfRenderer::setMetafile (const uno::Sequence< sal_Int8 >& /*rMtf*/) throw (uno::RuntimeException)
{
// printf ("MtfRenderer::setMetafile unimplemented, use fast property set or implement me\n");
}
diff --git a/cppcanvas/source/uno/uno_mtfrenderer.hxx b/cppcanvas/source/uno/uno_mtfrenderer.hxx
index a20ce54..bafc4f0 100644
--- a/cppcanvas/source/uno/uno_mtfrenderer.hxx
+++ b/cppcanvas/source/uno/uno_mtfrenderer.hxx
@@ -49,7 +49,7 @@ public:
// XFastPropertySet
// setFastPropertyValue (0, GDIMetaFile*) is used to speedup the rendering
- virtual ::com::sun::star::uno::Any SAL_CALL getFastPropertyValue(sal_Int32 nHandle) throw (::com::sun::star::uno::RuntimeException) { return ::com::sun::star::uno::Any(); }
+ virtual ::com::sun::star::uno::Any SAL_CALL getFastPropertyValue(sal_Int32 /*nHandle*/) throw (::com::sun::star::uno::RuntimeException) { return ::com::sun::star::uno::Any(); }
virtual void SAL_CALL setFastPropertyValue(sal_Int32 nHandle, const ::com::sun::star::uno::Any&) throw (::com::sun::star::uno::RuntimeException);
private:
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 052e675..a056ed2 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -474,8 +474,8 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter )
BOOL bNoTicks = FALSE;
//Amelia
- long nTickUnit ;
- long nTick2 ;
+ long nTickUnit = 0;
+ long nTick2 = 0;
if ( mnUnitIndex == RULER_UNIT_CHAR )
{
if ( mnCharWidth == 0 )
diff --git a/vcl/unx/source/plugadapt/salplug.cxx b/vcl/unx/source/plugadapt/salplug.cxx
index a93b2fa..5919bc0 100644
--- a/vcl/unx/source/plugadapt/salplug.cxx
+++ b/vcl/unx/source/plugadapt/salplug.cxx
@@ -282,7 +282,7 @@ void SalAbort( const XubString& rErrorText )
if( !rErrorText.Len() )
std::fprintf( stderr, "Application Error" );
else
- std::fprintf( stderr, ByteString( rErrorText, gsl_getSystemTextEncoding() ).GetBuffer() );
+ std::fprintf( stderr, "%s", ByteString( rErrorText, gsl_getSystemTextEncoding() ).GetBuffer() );
abort();
}
More information about the Libreoffice-commits
mailing list