|
From: <gb...@us...> - 2008-06-26 08:10:24
|
Revision: 223
http://gearbox.svn.sourceforge.net/gearbox/?rev=223&view=rev
Author: gbiggs
Date: 2008-06-26 01:10:26 -0700 (Thu, 26 Jun 2008)
Log Message:
-----------
Added some missing const specifiers
Modified Paths:
--------------
gearbox/trunk/submitted/hokuyo_aist/hokuyo_aist.cpp
gearbox/trunk/submitted/hokuyo_aist/hokuyo_aist.h
Modified: gearbox/trunk/submitted/hokuyo_aist/hokuyo_aist.cpp
===================================================================
--- gearbox/trunk/submitted/hokuyo_aist/hokuyo_aist.cpp 2008-06-26 07:10:03 UTC (rev 222)
+++ gearbox/trunk/submitted/hokuyo_aist/hokuyo_aist.cpp 2008-06-26 08:10:26 UTC (rev 223)
@@ -174,7 +174,7 @@
}
// error must be null-terminated
-string SCIP2ErrorToString (char *error, char *cmd)
+string SCIP2ErrorToString (const char *error, const char *cmd)
{
stringstream ss;
@@ -1469,7 +1469,8 @@
// If paramLength is 0, no parameters will be sent or expected in the reply.
// extraOK must be a 1-byte string for SCIP1 and a 2-byte string for SCIP2.
// Return value is the status code returned for the command.
-int HokuyoLaser::SendCommand (char *cmd, char *param, int paramLength, char *extraOK)
+int HokuyoLaser::SendCommand (const char *cmd, const char *param,
+ int paramLength, const char *extraOK)
{
int statusCode = -1;
char response[16];
Modified: gearbox/trunk/submitted/hokuyo_aist/hokuyo_aist.h
===================================================================
--- gearbox/trunk/submitted/hokuyo_aist/hokuyo_aist.h 2008-06-26 07:10:03 UTC (rev 222)
+++ gearbox/trunk/submitted/hokuyo_aist/hokuyo_aist.h 2008-06-26 08:10:26 UTC (rev 223)
@@ -423,7 +423,7 @@
int ReadLine (char *buffer, int expectedLength = -1);
int ReadLineWithCheck (char *buffer, int expectedLength = -1, bool hasSemicolon = false);
void SkipLines (int count);
- int SendCommand (char *cmd, char *param, int paramLength, char *extraOK);
+ int SendCommand (const char *cmd, const char *param, int paramLength, const char *extraOK);
void GetAndSetSCIPVersion (void);
void GetDefaults (void);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|