From db3347734ad64fc402c8fb1cc823e2d2dc41f9e1 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sat, 6 Aug 2011 14:20:01 -0700 Subject: [PATCH] Const strings for plNetSharedState. --- Sources/Plasma/NucleusLib/pnNetCommon/plNetSharedState.cpp | 2 +- Sources/Plasma/NucleusLib/pnNetCommon/plNetSharedState.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Plasma/NucleusLib/pnNetCommon/plNetSharedState.cpp b/Sources/Plasma/NucleusLib/pnNetCommon/plNetSharedState.cpp index 8f7f1ca8..fe43b494 100644 --- a/Sources/Plasma/NucleusLib/pnNetCommon/plNetSharedState.cpp +++ b/Sources/Plasma/NucleusLib/pnNetCommon/plNetSharedState.cpp @@ -28,7 +28,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #include "plGenericVar.h" #include "pnMessage/plMessage.h" -plNetSharedState::plNetSharedState(char* name) : fServerMayDelete(false) +plNetSharedState::plNetSharedState(const char* name) : fServerMayDelete(false) { SetName(name); } diff --git a/Sources/Plasma/NucleusLib/pnNetCommon/plNetSharedState.h b/Sources/Plasma/NucleusLib/pnNetCommon/plNetSharedState.h index 707fcb25..2fae4637 100644 --- a/Sources/Plasma/NucleusLib/pnNetCommon/plNetSharedState.h +++ b/Sources/Plasma/NucleusLib/pnNetCommon/plNetSharedState.h @@ -44,7 +44,7 @@ protected: bool fServerMayDelete; // ok to delete (don't save) since this state is equivalent to the default state public: - plNetSharedState(char* name=nil); + plNetSharedState(const char* name=nil); virtual ~plNetSharedState(); virtual void Copy(plNetSharedState* ss);