[Libreoffice-commits] .: accessibility/bridge automation/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sat Feb 5 15:20:08 PST 2011


 accessibility/bridge/source/java/WindowsAccessBridgeAdapter.cxx |    4 ++--
 automation/source/server/profiler.cxx                           |    2 +-
 automation/source/server/profiler.hxx                           |    2 +-
 automation/source/simplecm/communiio.hxx                        |    4 ++--
 automation/source/simplecm/packethandler.hxx                    |    4 ++--
 automation/source/testtool/httprequest.hxx                      |    6 +++---
 6 files changed, 11 insertions(+), 11 deletions(-)

New commits:
commit 014d3582652f4014fcf65cc3023962c7f74bf75e
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Feb 6 00:19:46 2011 +0100

    Some cppcheck cleaning

diff --git a/accessibility/bridge/source/java/WindowsAccessBridgeAdapter.cxx b/accessibility/bridge/source/java/WindowsAccessBridgeAdapter.cxx
index e5807a6..adaaca5 100644
--- a/accessibility/bridge/source/java/WindowsAccessBridgeAdapter.cxx
+++ b/accessibility/bridge/source/java/WindowsAccessBridgeAdapter.cxx
@@ -167,7 +167,7 @@ Java_org_openoffice_accessibility_WindowsAccessBridgeAdapter_createMapping(JNIEn
         }
     }
     
-    catch ( RuntimeException e)
+    catch ( RuntimeException &e)
     {
         OSL_TRACE("RuntimeException caught while initializing the mapping");
     }
@@ -251,7 +251,7 @@ void handleWindowEvent(Window * pWindow, bool bShow)
                     }
                 }
             }
-            catch (::com::sun::star::uno::RuntimeException e)
+            catch (::com::sun::star::uno::RuntimeException &e)
             {
                 // Ignore show events that throw DisposedExceptions in getAccessibleContext(),
                 // but keep revoking these windows in hide(s).
diff --git a/automation/source/server/profiler.cxx b/automation/source/server/profiler.cxx
index 595f4ac..be6760b 100644
--- a/automation/source/server/profiler.cxx
+++ b/automation/source/server/profiler.cxx
@@ -252,7 +252,7 @@ String TTProfiler::Dec( ULONG nNr )
     return aRet;
 }
 
-String TTProfiler::Pad( const String aS, xub_StrLen nLen )
+String TTProfiler::Pad( const String &aS, xub_StrLen nLen )
 {
     if ( nLen > aS.Len() )
         return UniString().Fill( nLen - aS.Len() ).Append( aS );
diff --git a/automation/source/server/profiler.hxx b/automation/source/server/profiler.hxx
index bc99443..7192441 100644
--- a/automation/source/server/profiler.hxx
+++ b/automation/source/server/profiler.hxx
@@ -112,7 +112,7 @@ private:
 
 //	String Hex( ULONG nNr );
     String Dec( ULONG nNr );	// Ergebnis = nNr / 100 mit 2 Dezimalen
-    String Pad( const String aS, xub_StrLen nLen );		// Fügt blanks links an den String an
+    String Pad( const String &aS, xub_StrLen nLen );		// Fügt blanks links an den String an
 
 /*	Ab hier werden die Methoden Systemabhängig in den entsprechenden cxx implementiert
     Sie werden von den oberen Methoden gerufen.
diff --git a/automation/source/simplecm/communiio.hxx b/automation/source/simplecm/communiio.hxx
index e5c623f..bb10407 100644
--- a/automation/source/simplecm/communiio.hxx
+++ b/automation/source/simplecm/communiio.hxx
@@ -50,7 +50,7 @@ public:
     virtual ~ITransmiter() {}
     virtual comm_USHORT TransferBytes( const void* pBuffer, comm_UINT32 nLen ) = 0;
 
-    comm_ULONG GetLastSent() { return nLastSent; }
+    comm_ULONG GetLastSent() const { return nLastSent; }
 };
 
 class IReceiver
@@ -62,7 +62,7 @@ public:
     virtual ~IReceiver() {;}
     virtual comm_USHORT ReceiveBytes( void* pBuffer, comm_UINT32 nLen ) = 0;
 
-    comm_ULONG GetLastReceived() { return nLastReceived; }
+    comm_ULONG GetLastReceived() const { return nLastReceived; }
 };
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/automation/source/simplecm/packethandler.hxx b/automation/source/simplecm/packethandler.hxx
index 7f42a61..eac7dda 100644
--- a/automation/source/simplecm/packethandler.hxx
+++ b/automation/source/simplecm/packethandler.hxx
@@ -59,8 +59,8 @@ protected:
 public:
     PacketHandler( ITransmiter* pTransmitter_, IReceiver* pReceiver_, comm_BOOL bMC = FALSE );
 
-    comm_UINT16 GetReceiveProtocol() { return nReceiveProtocol; }
-    comm_UINT16 GetReceiveHeaderType() { return nReceiveHeaderType; }
+    comm_UINT16 GetReceiveProtocol() const { return nReceiveProtocol; }
+    comm_UINT16 GetReceiveHeaderType() const { return nReceiveHeaderType; }
 
     comm_BOOL ReceiveData( void* &pData, comm_UINT32 &nLen );				/// Recieve DataPacket from Socket
     virtual comm_BOOL SendHandshake( HandshakeType aHandshakeType, const void* pData = NULL, comm_UINT32 nLen = 0 );
diff --git a/automation/source/testtool/httprequest.hxx b/automation/source/testtool/httprequest.hxx
index 02cc206..0be8806 100644
--- a/automation/source/testtool/httprequest.hxx
+++ b/automation/source/testtool/httprequest.hxx
@@ -73,11 +73,11 @@ public:
     BOOL Execute();
     void Abort();
 
-    ByteString GetHeader() { return aHeader; }
+    ByteString GetHeader() const { return aHeader; }
     SvMemoryStream* GetBody();
 
-    ByteString GetContentType() { return aContentType; }
-    USHORT GetResultId() { return nResultId; }
+    ByteString GetContentType() const { return aContentType; }
+    USHORT GetResultId() const { return nResultId; }
 
     USHORT GetStatus();
 


More information about the Libreoffice-commits mailing list