update sample code to use a std::string rather than a const char *
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 03 Aug 2007 17:52:39 +0200
changeset 1135 39ed8ebc1635
parent 1134 5f5d33e01eb9
child 1136 d5fe8364bcdf
update sample code to use a std::string rather than a const char *
samples/main-header.cc
--- a/samples/main-header.cc	Fri Aug 03 17:52:21 2007 +0200
+++ b/samples/main-header.cc	Fri Aug 03 17:52:39 2007 +0200
@@ -10,7 +10,7 @@
 class MyHeader : public Header 
 {
 public:
-  static const char *GetUid (void);
+  static std::string GetUid (void);
 
   MyHeader ();
   virtual ~MyHeader ();
@@ -35,7 +35,7 @@
 MyHeader::~MyHeader ()
 {}
 
-const char *
+std::string
 MyHeader::GetUid (void)
 {
   // This string is used by the internals of the packet