diff --git a/Sources/Plasma/FeatureLib/pfCamera/plCameraModifier.h b/Sources/Plasma/FeatureLib/pfCamera/plCameraModifier.h index b9746ab9..01a796a2 100644 --- a/Sources/Plasma/FeatureLib/pfCamera/plCameraModifier.h +++ b/Sources/Plasma/FeatureLib/pfCamera/plCameraModifier.h @@ -154,4 +154,4 @@ private: -#endif plCameraModifier_inc +#endif //plCameraModifier_inc diff --git a/Sources/Plasma/FeatureLib/pfCamera/plInterestingModifier.h b/Sources/Plasma/FeatureLib/pfCamera/plInterestingModifier.h index c5052a9d..efcee5e6 100644 --- a/Sources/Plasma/FeatureLib/pfCamera/plInterestingModifier.h +++ b/Sources/Plasma/FeatureLib/pfCamera/plInterestingModifier.h @@ -76,4 +76,4 @@ public: -#endif plInterestingModifier_inc +#endif //plInterestingModifier_inc diff --git a/Sources/Plasma/FeatureLib/pfCamera/plVirtualCamNeu.h b/Sources/Plasma/FeatureLib/pfCamera/plVirtualCamNeu.h index c82daafa..b1ba5b3e 100644 --- a/Sources/Plasma/FeatureLib/pfCamera/plVirtualCamNeu.h +++ b/Sources/Plasma/FeatureLib/pfCamera/plVirtualCamNeu.h @@ -232,4 +232,4 @@ private: }; -#endif plVirtualCam1_inc +#endif //plVirtualCam1_inc diff --git a/Sources/Plasma/FeatureLib/pfConsole/pfDispatchLog.cpp b/Sources/Plasma/FeatureLib/pfConsole/pfDispatchLog.cpp index 9099ef76..765024fd 100644 --- a/Sources/Plasma/FeatureLib/pfConsole/pfDispatchLog.cpp +++ b/Sources/Plasma/FeatureLib/pfConsole/pfDispatchLog.cpp @@ -30,7 +30,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #include "pnKeyedObject/plKey.h" #include "hsWindows.h" -bool DumpSpecificMsgInfo(plMessage* msg, std::string& info); +static bool DumpSpecificMsgInfo(plMessage* msg, std::string& info); plDispatchLog::plDispatchLog() : fLog(nil), @@ -184,7 +184,7 @@ static bool DumpSpecificMsgInfo(plMessage* msg, std::string& info) if (kiMsg) { const char* typeName = "(unknown)"; - #define PrintKIType(type) if (kiMsg->GetCommand() == pfKIMsg::##type) typeName = #type; + #define PrintKIType(type) if (kiMsg->GetCommand() == pfKIMsg::type) typeName = #type; PrintKIType(kHACKChatMsg); // send chat message via pfKIMsg PrintKIType(kEnterChatMode); // toggle chat mode PrintKIType(kSetChatFadeDelay); // set the chat delay @@ -253,7 +253,7 @@ static bool DumpSpecificMsgInfo(plMessage* msg, std::string& info) plClientMsg* clientMsg = plClientMsg::ConvertNoRef(msg); if (clientMsg) { - #define PrintType(type) if (clientMsg->GetClientMsgFlag() == plClientMsg::##type) info = #type; + #define PrintType(type) if (clientMsg->GetClientMsgFlag() == plClientMsg::type) info = #type; PrintType(kLoadRoom); PrintType(kLoadRoomHold); PrintType(kUnloadRoom); @@ -297,7 +297,7 @@ static bool DumpSpecificMsgInfo(plMessage* msg, std::string& info) if (refMsg) { const char* typeName = nil; - #define GetType(type) if (refMsg->GetContext() == plRefMsg::##type) typeName = #type; + #define GetType(type) if (refMsg->GetContext() == plRefMsg::type) typeName = #type; GetType(kOnCreate); GetType(kOnDestroy); GetType(kOnRequest); diff --git a/Sources/Plasma/FeatureLib/pfLocalizationMgr/pfLocalizationDataMgr.cpp b/Sources/Plasma/FeatureLib/pfLocalizationMgr/pfLocalizationDataMgr.cpp index 4ea3ca52..bcc87bc5 100644 --- a/Sources/Plasma/FeatureLib/pfLocalizationMgr/pfLocalizationDataMgr.cpp +++ b/Sources/Plasma/FeatureLib/pfLocalizationMgr/pfLocalizationDataMgr.cpp @@ -834,7 +834,7 @@ template std::vector pfLocalizationDataMgr::pf3PartMap::getAgeList() { std::vector retVal; - ThreePartMap::iterator curAge; + typename ThreePartMap::iterator curAge; for (curAge = fData.begin(); curAge != fData.end(); curAge++) retVal.push_back(curAge->first); @@ -848,7 +848,7 @@ template std::vector pfLocalizationDataMgr::pf3PartMap::getSetList(const std::wstring & age) { std::vector retVal; - std::map >::iterator curSet; + typename std::map >::iterator curSet; if (fData.find(age) == fData.end()) return retVal; // return an empty list, the age doesn't exist @@ -865,7 +865,7 @@ template std::vector pfLocalizationDataMgr::pf3PartMap::getNameList(const std::wstring & age, const std::wstring & set) { std::vector retVal; - std::map::iterator curName; + typename std::map::iterator curName; if (fData.find(age) == fData.end()) return retVal; // return an empty list, the age doesn't exist diff --git a/Sources/Plasma/FeatureLib/pfPython/cyAvatar.h b/Sources/Plasma/FeatureLib/pfPython/cyAvatar.h index 8bb3d65c..dd88a71e 100644 --- a/Sources/Plasma/FeatureLib/pfPython/cyAvatar.h +++ b/Sources/Plasma/FeatureLib/pfPython/cyAvatar.h @@ -484,7 +484,7 @@ public: // // PURPOSE : Enter the personal book mode...stay until further notice. // - static bool cyAvatar::EnterPBMode(); + static bool EnterPBMode(); ///////////////////////////////////////////////////////////////////////////// // @@ -494,7 +494,7 @@ public: // PURPOSE : Leave the personal book mode. Currently leaves any mode; will become // : more specific in future version // - static bool cyAvatar::ExitPBMode(); + static bool ExitPBMode(); ///////////////////////////////////////////////////////////////////////////// // diff --git a/Sources/Plasma/FeatureLib/pfPython/cyMisc.h b/Sources/Plasma/FeatureLib/pfPython/cyMisc.h index 902dbb27..dba3d0b8 100644 --- a/Sources/Plasma/FeatureLib/pfPython/cyMisc.h +++ b/Sources/Plasma/FeatureLib/pfPython/cyMisc.h @@ -238,10 +238,10 @@ public: // static const char* GetClientName(pyKey &avKey); - static PyObject* cyMisc::GetAvatarKeyFromClientID(int clientID); // returns pyKey - static int cyMisc::GetLocalClientID(); - static int cyMisc::GetClientIDFromAvatarKey(pyKey& avatar); - static hsBool cyMisc::ValidateKey(pyKey& key); + static PyObject* GetAvatarKeyFromClientID(int clientID); // returns pyKey + static int GetLocalClientID(); + static int GetClientIDFromAvatarKey(pyKey& avatar); + static hsBool ValidateKey(pyKey& key); @@ -519,7 +519,7 @@ public: // // PURPOSE : knocks all the cameras off the current stack // - static void cyMisc::ClearCameraStack(); + static void ClearCameraStack(); ///////////////////////////////////////////////////////////////////////////// // diff --git a/Sources/Plasma/FeatureLib/pfPython/pyGUIControlListBox.cpp b/Sources/Plasma/FeatureLib/pfPython/pyGUIControlListBox.cpp index 8a4cea49..98663e47 100644 --- a/Sources/Plasma/FeatureLib/pfPython/pyGUIControlListBox.cpp +++ b/Sources/Plasma/FeatureLib/pfPython/pyGUIControlListBox.cpp @@ -273,14 +273,14 @@ class pfListTextInBox : public pfGUIListText UInt32 fMinHeight; public: - pfListTextInBox::pfListTextInBox( const char *text, UInt32 min_width=0, UInt32 min_height=0 ) : pfGUIListText( text ) + pfListTextInBox( const char *text, UInt32 min_width=0, UInt32 min_height=0 ) : pfGUIListText( text ) { fMinWidth = min_width; fMinHeight = min_height; fJustify = pfGUIListText::kCenter; } - pfListTextInBox::pfListTextInBox( const wchar_t *text, UInt32 min_width=0, UInt32 min_height=0 ) : pfGUIListText( text ) + pfListTextInBox( const wchar_t *text, UInt32 min_width=0, UInt32 min_height=0 ) : pfGUIListText( text ) { fMinWidth = min_width; fMinHeight = min_height; @@ -313,7 +313,7 @@ class pfListPictureInBox : public pfGUIListPicture UInt32 fSrcHeight; public: - pfListPictureInBox::pfListPictureInBox( plKey mipKey, UInt32 x, UInt32 y, UInt32 width, UInt32 height, hsBool respectAlpha ) : pfGUIListPicture( mipKey,respectAlpha ) + pfListPictureInBox( plKey mipKey, UInt32 x, UInt32 y, UInt32 width, UInt32 height, hsBool respectAlpha ) : pfGUIListPicture( mipKey,respectAlpha ) { fSrcX = x; fSrcY = y; @@ -378,7 +378,7 @@ class pfListPictureInBoxWithSwatches : public pfListPictureInBox static UInt16 fSwatchSize, fSwatchOffset; - pfListPictureInBoxWithSwatches::pfListPictureInBoxWithSwatches( plKey mipKey, UInt32 x, UInt32 y, + pfListPictureInBoxWithSwatches( plKey mipKey, UInt32 x, UInt32 y, UInt32 width, UInt32 height, hsBool respectAlpha, const hsColorRGBA &primaryColor, const hsColorRGBA &secondaryColor ) diff --git a/Sources/Plasma/FeatureLib/pfPython/pyImage.h b/Sources/Plasma/FeatureLib/pfPython/pyImage.h index 5c584da6..feefd271 100644 --- a/Sources/Plasma/FeatureLib/pfPython/pyImage.h +++ b/Sources/Plasma/FeatureLib/pfPython/pyImage.h @@ -98,7 +98,7 @@ protected: public: #ifndef BUILDING_PYPLASMA - pyImage::~pyImage() + ~pyImage() { if (fMipmap && fMipMapKey) fMipMapKey->UnRefObject();