const parameter in contructors
authorThomas Pietrzak <thomas.pietrzak@gmail.com>
Wed, 3 Aug 2011 18:23:21 +0000 (18:23 +0000)
committerThomas Pietrzak <thomas.pietrzak@gmail.com>
Wed, 3 Aug 2011 18:23:21 +0000 (18:23 +0000)
git-svn-id: svn+ssh://thomaspietrzak.com/var/svn/rep@40 47cf9a05-e0a8-4ed5-9e9b-101a649bc004

TactonPlayer/Serial.cpp
TactonPlayer/Serial.hpp
TactonPlayer/SerialWindows.cpp
TactonPlayer/SerialWindows.hpp
TactonPlayer/TactonPlayer.cpp
TactonPlayer/TactonPlayer.hpp

index e5272633656fd8c315391d3f53102cc249cca389..64744502ddb62c11ffb29853cc9c0137ff7ec83c 100644 (file)
@@ -1,6 +1,6 @@
 #include "Serial.hpp"\r
 \r
-Serial::Serial(char *)\r
+Serial::Serial(const char *)\r
 :_connected(false)\r
 {\r
 }\r
index f306af78f1f37fc405e1d950e40ae29ce6212e84..4ee686de3498efe0d35c9b7c42ba8567e75b2f05 100644 (file)
@@ -7,7 +7,7 @@ class Serial
 {\r
     public:\r
         //Initialize Serial communication with the given COM port\r
-        Serial(char *portName);\r
+        Serial(const char *portName);\r
 \r
         //Close the connection\r
         //NOTA: for some reason you can't connect again before exiting\r
index 38806efd50671c665a5d87b611d2d88bb3ed1f9c..251f9bd58e5a683e18e528059279089927ca09a5 100644 (file)
@@ -7,7 +7,7 @@ using namespace std;
 #include <windows.h>
 #endif
 \r
-SerialWindows::SerialWindows(char *portName)\r
+SerialWindows::SerialWindows(const char *portName)\r
 :Serial(portName)\r
 {\r
     //Try to connect to the given port throuh CreateFile\r
index 28eb1af480fc2d6bf7706904b5bbdbdca9787d9c..a7e5c1600f55b37ae89364544346eedb3b8db35c 100644 (file)
@@ -9,7 +9,7 @@ class SerialWindows : public Serial
 {\r
     public:\r
         //Initialize Serial communication with the given COM port\r
-        SerialWindows(char *portName);\r
+        SerialWindows(const char *portName);\r
         //Close the connection\r
         //NOTA: for some reason you can't connect again before exiting\r
         //the program and running it again\r
index b739d6e321520000c864f24c85f8b6f6d57327eb..3e8fa2c7dcc8f03b4feafde5d8078a3e92bb0663 100644 (file)
@@ -4,7 +4,7 @@
 \r
 #include <stdexcept>\r
 \r
-TactonPlayer::TactonPlayer(char *port)\r
+TactonPlayer::TactonPlayer(const char *port)\r
 :_comport(new SerialWindows(port))\r
 {\r
 }\r
index 49621a7249f6044c6be630eb0bc916f6184094f9..bb77e14820aba32319a349fb3a4a9dae9175dc3f 100644 (file)
@@ -5,7 +5,7 @@
 class TactonPlayer\r
 {\r
        public:\r
-                       __declspec(dllexport) TactonPlayer(char *port = "COM5");\r
+                       __declspec(dllexport) TactonPlayer(const char *port = "COM5");\r
                        __declspec(dllexport) ~TactonPlayer();\r
 \r
                        //set the timestamp to 0, and watch for scheduled tactons\r