diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-02-06 00:19:46 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-02-06 00:19:46 +0100 |
commit | 37823fe2b4474eca6e8a775668af6bca21e2af55 (patch) | |
tree | 024a86eca04a42cc6acd74a5c9c2e6ac944ad05b | |
parent | Revert: Reg4allmsdoc updated to use the new registry file extension IDs (diff) | |
download | core-37823fe2b4474eca6e8a775668af6bca21e2af55.tar.gz core-37823fe2b4474eca6e8a775668af6bca21e2af55.zip |
Some cppcheck cleaning
-rw-r--r-- | accessibility/bridge/source/java/WindowsAccessBridgeAdapter.cxx | 4 | ||||
-rw-r--r-- | automation/source/server/profiler.cxx | 2 | ||||
-rw-r--r-- | automation/source/server/profiler.hxx | 2 | ||||
-rw-r--r-- | automation/source/simplecm/communiio.hxx | 4 | ||||
-rw-r--r-- | automation/source/simplecm/packethandler.hxx | 4 | ||||
-rw-r--r-- | automation/source/testtool/httprequest.hxx | 6 |
6 files changed, 11 insertions, 11 deletions
diff --git a/accessibility/bridge/source/java/WindowsAccessBridgeAdapter.cxx b/accessibility/bridge/source/java/WindowsAccessBridgeAdapter.cxx index f34e79aae86f..087e4dec681d 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 95d7c00a6b7e..1f9a63c18bd9 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 c7d0537d6225..cd6f309844a4 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 c0625ed8b2c6..65466a26b271 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 31081b2e949a..d4da137196ca 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 af8ad673a17d..d7ec34fe7b85 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(); |