summaryrefslogtreecommitdiff
path: root/automation
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-02-06 00:19:46 +0100
committerJulien Nabet <serval2412@yahoo.fr>2011-02-06 00:19:46 +0100
commit37823fe2b4474eca6e8a775668af6bca21e2af55 (patch)
tree024a86eca04a42cc6acd74a5c9c2e6ac944ad05b /automation
parentfe9ce8d621de45f52b30accc759e976cf480c9af (diff)
Some cppcheck cleaning
Diffstat (limited to 'automation')
-rw-r--r--automation/source/server/profiler.cxx2
-rw-r--r--automation/source/server/profiler.hxx2
-rw-r--r--automation/source/simplecm/communiio.hxx4
-rw-r--r--automation/source/simplecm/packethandler.hxx4
-rw-r--r--automation/source/testtool/httprequest.hxx6
5 files changed, 9 insertions, 9 deletions
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();