From f2d5e54810b9dc2c9116b4ed70d512b9cd577f13 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sun, 24 Jul 2011 14:48:53 -0700 Subject: [PATCH 1/4] Syntax fixes for CoreLib. --- Sources/Plasma/CoreLib/hsBounds.cpp | 2 +- Sources/Plasma/CoreLib/hsStringTokenizer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Plasma/CoreLib/hsBounds.cpp b/Sources/Plasma/CoreLib/hsBounds.cpp index 81ebe9b2..1180e153 100644 --- a/Sources/Plasma/CoreLib/hsBounds.cpp +++ b/Sources/Plasma/CoreLib/hsBounds.cpp @@ -1673,7 +1673,7 @@ hsBool hsBounds3Ext::ISectBB(const hsBounds3Ext &other, const hsVector3 &myVel, } else tstDepths[i+6] = 0; -#endif; +#endif } hsVector3 norm; diff --git a/Sources/Plasma/CoreLib/hsStringTokenizer.h b/Sources/Plasma/CoreLib/hsStringTokenizer.h index 5fbdc275..ae93a324 100644 --- a/Sources/Plasma/CoreLib/hsStringTokenizer.h +++ b/Sources/Plasma/CoreLib/hsStringTokenizer.h @@ -91,4 +91,4 @@ private: hsBool IsSep(wchar c); }; -#endif // _hsStringTokenizer_Included_ \ No newline at end of file +#endif // _hsStringTokenizer_Included_ From 21afed6853acdabdfb3c86825f77e87bf41d6cb7 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sun, 24 Jul 2011 14:55:58 -0700 Subject: [PATCH 2/4] Syntax fixes for NucleusLib. --- Sources/Plasma/NucleusLib/inc/CMakeLists.txt | 1 + Sources/Plasma/NucleusLib/pnInputCore/plKeyMap.h | 2 +- Sources/Plasma/NucleusLib/pnKeyedObject/plFixedKey.cpp | 2 +- Sources/Plasma/NucleusLib/pnModifier/plLogicModBase.h | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Sources/Plasma/NucleusLib/inc/CMakeLists.txt b/Sources/Plasma/NucleusLib/inc/CMakeLists.txt index d252b6ca..696f360f 100644 --- a/Sources/Plasma/NucleusLib/inc/CMakeLists.txt +++ b/Sources/Plasma/NucleusLib/inc/CMakeLists.txt @@ -1,5 +1,6 @@ include_directories("../../CoreLib") include_directories("../../NucleusLib") +include_directories("../../NucleusLib/inc") set(pnNucleusInc_HEADERS hsGMatState.h diff --git a/Sources/Plasma/NucleusLib/pnInputCore/plKeyMap.h b/Sources/Plasma/NucleusLib/pnInputCore/plKeyMap.h index bbb067c5..383adbc6 100644 --- a/Sources/Plasma/NucleusLib/pnInputCore/plKeyMap.h +++ b/Sources/Plasma/NucleusLib/pnInputCore/plKeyMap.h @@ -179,7 +179,7 @@ class plKeyMap : public plInputMap void FindAllBindingsByKey( const plKeyCombo &combo, hsTArray &result ) const; // Searches for the binding by console command. Returns nil if not found - const plKeyBinding* plKeyMap::FindConsoleBinding( const char *command ) const; + const plKeyBinding* FindConsoleBinding( const char *command ) const; // Make sure the given keys are clear of bindings, i.e. not used void EnsureKeysClear( const plKeyCombo &key1, const plKeyCombo &key2 ); diff --git a/Sources/Plasma/NucleusLib/pnKeyedObject/plFixedKey.cpp b/Sources/Plasma/NucleusLib/pnKeyedObject/plFixedKey.cpp index 65f84143..c6256045 100644 --- a/Sources/Plasma/NucleusLib/pnKeyedObject/plFixedKey.cpp +++ b/Sources/Plasma/NucleusLib/pnKeyedObject/plFixedKey.cpp @@ -119,7 +119,7 @@ class plFixedKeyValidator private: static plFixedKeyValidator fValidator; - plFixedKeyValidator::plFixedKeyValidator() + plFixedKeyValidator() { // verify that each Seed is in the correct spot...via the enum... int i; diff --git a/Sources/Plasma/NucleusLib/pnModifier/plLogicModBase.h b/Sources/Plasma/NucleusLib/pnModifier/plLogicModBase.h index f90976d1..b104d582 100644 --- a/Sources/Plasma/NucleusLib/pnModifier/plLogicModBase.h +++ b/Sources/Plasma/NucleusLib/pnModifier/plLogicModBase.h @@ -69,7 +69,7 @@ protected: void CreateNotifyMsg(); public: - friend plVolumeSensorConditionalObjectNoArbitration; + friend class plVolumeSensorConditionalObjectNoArbitration; plLogicModBase(); ~plLogicModBase(); CLASSNAME_REGISTER( plLogicModBase ); From e6a625674f85207fcfac6759ec0840ef8cfdd5aa Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sun, 24 Jul 2011 15:14:32 -0700 Subject: [PATCH 3/4] Syntax fixes for FeatureLib. --- Sources/Plasma/FeatureLib/pfCamera/plCameraModifier.h | 2 +- .../Plasma/FeatureLib/pfCamera/plInterestingModifier.h | 2 +- Sources/Plasma/FeatureLib/pfCamera/plVirtualCamNeu.h | 2 +- Sources/Plasma/FeatureLib/pfConsole/pfDispatchLog.cpp | 8 ++++---- .../pfLocalizationMgr/pfLocalizationDataMgr.cpp | 6 +++--- Sources/Plasma/FeatureLib/pfPython/cyAvatar.h | 4 ++-- Sources/Plasma/FeatureLib/pfPython/cyMisc.h | 10 +++++----- .../Plasma/FeatureLib/pfPython/pyGUIControlListBox.cpp | 8 ++++---- Sources/Plasma/FeatureLib/pfPython/pyImage.h | 2 +- 9 files changed, 22 insertions(+), 22 deletions(-) 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(); From 46c4a457e08d6ce9f469bad1121d2b3beabc0473 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sun, 24 Jul 2011 15:26:58 -0700 Subject: [PATCH 4/4] Syntax fixes for PubUtilLib. --- Sources/Plasma/PubUtilLib/plAudio/plEAXEffects.h | 6 +++--- Sources/Plasma/PubUtilLib/plAvatar/plAGChannel.h | 2 +- Sources/Plasma/PubUtilLib/plAvatar/plAGMasterMod.h | 2 +- Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.h | 4 ++-- Sources/Plasma/PubUtilLib/plAvatar/plAvBrainClimb.h | 4 ++-- Sources/Plasma/PubUtilLib/plAvatar/plAvBrainGeneric.h | 2 +- Sources/Plasma/PubUtilLib/plAvatar/plAvBrainSwim.h | 2 +- Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.h | 8 ++++---- Sources/Plasma/PubUtilLib/plAvatar/plAvatarTasks.h | 2 +- Sources/Plasma/PubUtilLib/plAvatar/plMatrixChannel.h | 4 ++-- Sources/Plasma/PubUtilLib/plAvatar/plScalarChannel.h | 2 +- Sources/Plasma/PubUtilLib/plDrawable/plAccessGeometry.h | 2 -- Sources/Plasma/PubUtilLib/plDrawable/plDrawableSpans.cpp | 2 +- Sources/Plasma/PubUtilLib/plDrawable/plDynaDecal.cpp | 8 ++++---- Sources/Plasma/PubUtilLib/plGImage/plLODMipmap.h | 5 +++-- Sources/Plasma/PubUtilLib/plGImage/plMipmap.cpp | 4 ++-- Sources/Plasma/PubUtilLib/plGLight/plShadowCaster.h | 2 +- .../PubUtilLib/plInputCore/plAvatarInputInterface.h | 2 +- Sources/Plasma/PubUtilLib/plInterp/plAnimPath.h | 2 +- Sources/Plasma/PubUtilLib/plMath/plAvg.cpp | 2 +- Sources/Plasma/PubUtilLib/plMessage/plAvatarMsg.h | 2 +- Sources/Plasma/PubUtilLib/plMessage/plCondRefMsg.h | 2 +- Sources/Plasma/PubUtilLib/plMessage/plMatrixUpdateMsg.h | 2 +- Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.h | 2 +- .../Plasma/PubUtilLib/plNetCommon/plNetCommonHelpers.h | 2 +- .../PubUtilLib/plParticleSystem/plParticleEmitter.h | 4 ++-- .../Plasma/PubUtilLib/plParticleSystem/plParticleSystem.h | 4 ++-- .../PubUtilLib/plPhysX/plPXPhysicalControllerCore.h | 8 ++++---- .../Plasma/PubUtilLib/plPhysical/plCollisionDetector.h | 2 +- Sources/Plasma/PubUtilLib/plPhysical/plDetectorModifier.h | 2 +- Sources/Plasma/PubUtilLib/plPhysical/plSimDefs.h | 2 +- Sources/Plasma/PubUtilLib/plPipeline/hsGDDrawDllLoad.h | 2 +- Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.h | 4 ++-- Sources/Plasma/PubUtilLib/plPipeline/plRenderTarget.h | 2 +- Sources/Plasma/PubUtilLib/plResMgr/plLocalization.h | 4 ++-- Sources/Plasma/PubUtilLib/plSockets/plNet.h | 2 +- Sources/Plasma/PubUtilLib/plSurface/plLayerDepth.h | 2 +- Sources/Plasma/PubUtilLib/plSurface/plLayerOr.h | 2 +- Sources/Plasma/PubUtilLib/plVault/plVaultClientApi.cpp | 2 +- 39 files changed, 59 insertions(+), 60 deletions(-) diff --git a/Sources/Plasma/PubUtilLib/plAudio/plEAXEffects.h b/Sources/Plasma/PubUtilLib/plAudio/plEAXEffects.h index 0e60102d..08cf44cf 100644 --- a/Sources/Plasma/PubUtilLib/plAudio/plEAXEffects.h +++ b/Sources/Plasma/PubUtilLib/plAudio/plEAXEffects.h @@ -148,7 +148,7 @@ class plEAXSourceSettings protected: friend class plEAXSource; - friend plEAXSourceSoftSettings; + friend class plEAXSourceSoftSettings; hsBool fEnabled; Int16 fRoom, fRoomHF; @@ -176,8 +176,8 @@ class plEAXSourceSettings class plEAXSource { public: - friend plEAXSourceSettings; - friend plEAXSourceSoftSettings; + friend class plEAXSourceSettings; + friend class plEAXSourceSoftSettings; plEAXSource(); virtual ~plEAXSource(); diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plAGChannel.h b/Sources/Plasma/PubUtilLib/plAvatar/plAGChannel.h index 1002bee8..275f0a8a 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plAGChannel.h +++ b/Sources/Plasma/PubUtilLib/plAvatar/plAGChannel.h @@ -179,4 +179,4 @@ protected: }; -#endif PLAGCHANNEL_H +#endif //PLAGCHANNEL_H diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plAGMasterMod.h b/Sources/Plasma/PubUtilLib/plAvatar/plAGMasterMod.h index 4747e4c0..641e0d88 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plAGMasterMod.h +++ b/Sources/Plasma/PubUtilLib/plAvatar/plAGMasterMod.h @@ -188,7 +188,7 @@ public: virtual void AddTarget(plSceneObject * object); virtual void RemoveTarget(plSceneObject * object); - hsBool plAGMasterMod::MsgReceive(plMessage* msg); + hsBool MsgReceive(plMessage* msg); virtual void Write(hsStream *stream, hsResMgr *mgr); virtual void Read(hsStream * stream, hsResMgr *mgr); diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.h b/Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.h index 974c3cc6..0c481880 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.h +++ b/Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.h @@ -281,7 +281,7 @@ public: kSwim, }; - const char *plArmatureMod::GetAnimRootName(const char *name); + const char *GetAnimRootName(const char *name); Int8 AnimNameToIndex(const char *name); void SetBodyType(int type) { fBodyType = type; } int GetBodyType(int type) { return fBodyType; } @@ -466,4 +466,4 @@ protected: #define TWO_PI (hsScalarPI * 2) -#endif plArmatureMod_inc +#endif //plArmatureMod_inc diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainClimb.h b/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainClimb.h index 84206916..79f6398c 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainClimb.h +++ b/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainClimb.h @@ -88,8 +88,8 @@ public: virtual void LoadFromSDL(const plStateDataRecord *sdl); void DumpToDebugDisplay(int &x, int &y, int lineHeight, char *strBuf, plDebugText &debugTxt); - const char * plAvBrainClimb::WorldDirStr(plClimbMsg::Direction dir); - const char *plAvBrainClimb::ModeStr(Mode mode); + const char * WorldDirStr(plClimbMsg::Direction dir); + const char *ModeStr(Mode mode); // plasma protocol virtual hsBool MsgReceive(plMessage *msg); diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainGeneric.h b/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainGeneric.h index a00b9a12..9c3b695b 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainGeneric.h +++ b/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainGeneric.h @@ -240,7 +240,7 @@ public: virtual void DumpToDebugDisplay(int &x, int &y, int lineHeight, char *strBuf, plDebugText &debugTxt); // plasma protocol - hsBool plAvBrainGeneric::MsgReceive(plMessage *msg); + hsBool MsgReceive(plMessage *msg); CLASSNAME_REGISTER( plAvBrainGeneric ); GETINTERFACE_ANY( plAvBrainGeneric, plArmatureBrain ); diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainSwim.h b/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainSwim.h index b4476446..45994484 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainSwim.h +++ b/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainSwim.h @@ -105,4 +105,4 @@ protected: }; }; -#endif PL_AV_BRAIN_SWIM_H +#endif //PL_AV_BRAIN_SWIM_H diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.h b/Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.h index 5828b190..25f74e6d 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.h +++ b/Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.h @@ -164,11 +164,11 @@ protected: /** Handle an incoming clone message; do any necessary post-processing on the avatar. */ - void plAvatarMgr::IFinishLoadingAvatar(plLoadAvatarMsg *cloneMsg); + void IFinishLoadingAvatar(plLoadAvatarMsg *cloneMsg); /** Handle an incoming clone message which holds an unload request. */ - void plAvatarMgr::IFinishUnloadingAvatar(plLoadAvatarMsg *cloneMsg); + void IFinishUnloadingAvatar(plLoadAvatarMsg *cloneMsg); /** When an armature modifier attached to the given scene object is loaded, send it the given message. @@ -177,10 +177,10 @@ protected: We'll get that notification via the AddAvatar call later. In this function we're going to squirrel away an initialization message to pass to the armature modifier when it arrives. */ - void plAvatarMgr::IDeferInit(plKey playerSOKey, plMessage *initMsg); + void IDeferInit(plKey playerSOKey, plMessage *initMsg); /** See if we have an avatar type message saved for the given avatar and send them. */ - void plAvatarMgr::ISendDeferredInit(plKey playerSOKey); + void ISendDeferredInit(plKey playerSOKey); static plAvatarMgr* fInstance; // the single instance of the avatar manager diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plAvatarTasks.h b/Sources/Plasma/PubUtilLib/plAvatar/plAvatarTasks.h index eef4ab7e..50070fb3 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plAvatarTasks.h +++ b/Sources/Plasma/PubUtilLib/plAvatar/plAvatarTasks.h @@ -174,7 +174,7 @@ public: \param brain The brain to attach the task to. */ plAvOneShotTask (plAvOneShotMsg *msg, plArmatureMod *avatar, plArmatureBrain *brain); - virtual plAvOneShotTask::~plAvOneShotTask(); + virtual ~plAvOneShotTask(); // task protocol virtual hsBool Start(plArmatureMod *avatar, plArmatureBrain *brain, double time, hsScalar elapsed); diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plMatrixChannel.h b/Sources/Plasma/PubUtilLib/plAvatar/plMatrixChannel.h index ea7af3cc..a9620634 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plMatrixChannel.h +++ b/Sources/Plasma/PubUtilLib/plAvatar/plMatrixChannel.h @@ -154,7 +154,7 @@ public: plMatrixBlend(plMatrixChannel * channelA, plMatrixChannel * channelB, plScalarChannel * channelBias, int priority); virtual ~plMatrixBlend(); - virtual plAGChannel * plMatrixBlend::MakeBlend(plAGChannel *newChannel, plScalarChannel *channelBias, int blendPriority); + virtual plAGChannel * MakeBlend(plAGChannel *newChannel, plScalarChannel *channelBias, int blendPriority); // you cannot blend on top of a channel that has higher priority than you do. virtual UInt16 GetPriority(); @@ -182,7 +182,7 @@ public: virtual plAGChannel * Detach(plAGChannel * channel); virtual void Dump(int indent, bool optimized, double time); - plAGChannel *plMatrixBlend::Optimize(double time); + plAGChannel* Optimize(double time); // PLASMA PROTOCOL CLASSNAME_REGISTER( plMatrixBlend ); diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plScalarChannel.h b/Sources/Plasma/PubUtilLib/plAvatar/plScalarChannel.h index 7b1eeca1..8a225450 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plScalarChannel.h +++ b/Sources/Plasma/PubUtilLib/plAvatar/plScalarChannel.h @@ -192,7 +192,7 @@ public: virtual const hsScalar & Value(double time, hsBool peek = false); virtual const hsScalar & Value(double time, hsBool peek, plControllerCacheInfo *cache); - virtual plAGChannel *plScalarControllerChannel::MakeCacheChannel(plAnimTimeConvert *atc); + virtual plAGChannel *MakeCacheChannel(plAnimTimeConvert *atc); // PLASMA PROTOCOL // rtti diff --git a/Sources/Plasma/PubUtilLib/plDrawable/plAccessGeometry.h b/Sources/Plasma/PubUtilLib/plDrawable/plAccessGeometry.h index b7cdaab8..3bd99a87 100644 --- a/Sources/Plasma/PubUtilLib/plDrawable/plAccessGeometry.h +++ b/Sources/Plasma/PubUtilLib/plDrawable/plAccessGeometry.h @@ -46,8 +46,6 @@ class plAccessGeometry : public hsRefCnt protected: void Nilify() { fPipe = nil; } - friend class plAccessGeometry; - plPipeline* fPipe; static plAccessGeometry* fInstance; diff --git a/Sources/Plasma/PubUtilLib/plDrawable/plDrawableSpans.cpp b/Sources/Plasma/PubUtilLib/plDrawable/plDrawableSpans.cpp index e23e4858..ad1890ce 100644 --- a/Sources/Plasma/PubUtilLib/plDrawable/plDrawableSpans.cpp +++ b/Sources/Plasma/PubUtilLib/plDrawable/plDrawableSpans.cpp @@ -2785,7 +2785,7 @@ void plDrawableSpans::RemoveDISpans( UInt32 index ) } } } -#else MF_RENDDEP +#else // MF_RENDDEP spanInverseTable[(*spanIndices)[i]] = -1; for( j = (*spanIndices)[i]; j < fSpans.GetCount(); j++ ) spanInverseTable[j]--; diff --git a/Sources/Plasma/PubUtilLib/plDrawable/plDynaDecal.cpp b/Sources/Plasma/PubUtilLib/plDrawable/plDynaDecal.cpp index 9d126db0..cfbb6a0a 100644 --- a/Sources/Plasma/PubUtilLib/plDrawable/plDynaDecal.cpp +++ b/Sources/Plasma/PubUtilLib/plDrawable/plDynaDecal.cpp @@ -89,7 +89,7 @@ hsBool plDynaSplot::Age(double t, hsScalar ramp, hsScalar decay, hsScalar life) while( n-- ) { hsScalar initOpac = *sPtr; - *alpha = unsigned char(initOpac * atten * 255.99f); + *alpha = (unsigned char)(initOpac * atten * 255.99f); alpha += stride; sPtr += 3; @@ -166,7 +166,7 @@ hsBool plDynaRipple::Age(double t, hsScalar ramp, hsScalar decay, hsScalar life) while( n-- ) { unsigned char* alpha = ((unsigned char*)&vtx->fDiffuse) + 3; - *alpha = unsigned char(origUVW->fZ * atten * 255.99f); + *alpha = (unsigned char)(origUVW->fZ * atten * 255.99f); vtx->fUVW[0].fX = (origUVW->fX - 0.5f) * scaleU + 0.5f; vtx->fUVW[0].fY = (origUVW->fY - 0.5f) * scaleV + 0.5f; @@ -246,7 +246,7 @@ hsBool plDynaWake::Age(double t, hsScalar ramp, hsScalar decay, hsScalar life) while( n-- ) { unsigned char* alpha = ((unsigned char*)&vtx->fDiffuse) + 3; - *alpha = unsigned char(origUVW->fZ * atten * 255.99f); + *alpha = (unsigned char)(origUVW->fZ * atten * 255.99f); vtx->fUVW[0].fX = (origUVW->fX - 0.5f) * scaleU + 0.5f; vtx->fUVW[0].fY = origUVW->fY * scaleV; @@ -326,7 +326,7 @@ hsBool plDynaWave::Age(double t, hsScalar ramp, hsScalar decay, hsScalar life) while( n-- ) { unsigned char* alpha = ((unsigned char*)&vtx->fDiffuse) + 3; - *alpha = unsigned char(origUVW->fZ * atten * 255.99f); + *alpha = (unsigned char)(origUVW->fZ * atten * 255.99f); vtx->fUVW[0].fX = origUVW->fX; vtx->fUVW[0].fY = origUVW->fY * scale + scroll; diff --git a/Sources/Plasma/PubUtilLib/plGImage/plLODMipmap.h b/Sources/Plasma/PubUtilLib/plGImage/plLODMipmap.h index ed6f929e..e1f86a76 100644 --- a/Sources/Plasma/PubUtilLib/plGImage/plLODMipmap.h +++ b/Sources/Plasma/PubUtilLib/plGImage/plLODMipmap.h @@ -32,11 +32,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com class plLODMipmap : public plMipmap { protected: - const enum + enum { kRefBase = 0 }; - const enum + + enum { kNumLODs = 5 }; diff --git a/Sources/Plasma/PubUtilLib/plGImage/plMipmap.cpp b/Sources/Plasma/PubUtilLib/plGImage/plMipmap.cpp index b3114c38..2a3c11dd 100644 --- a/Sources/Plasma/PubUtilLib/plGImage/plMipmap.cpp +++ b/Sources/Plasma/PubUtilLib/plGImage/plMipmap.cpp @@ -383,7 +383,7 @@ plMipmap *plMipmap::ISplitAlpha() switch( fUncompressedInfo.fType ) { - case fUncompressedInfo.kRGB8888: + case UncompressedInfo::kRGB8888: // first byte is the alpha channel, we will drop this byte into the red channel for compression while (curByte < numBytes) { @@ -411,7 +411,7 @@ void plMipmap::IRecombineAlpha( plMipmap *alphaChannel ) switch( fUncompressedInfo.fType ) { - case fUncompressedInfo.kRGB8888: + case UncompressedInfo::kRGB8888: // first byte is the alpha channel, we will grab this byte from the red channel for reconstitution while (curByte < numBytes) { diff --git a/Sources/Plasma/PubUtilLib/plGLight/plShadowCaster.h b/Sources/Plasma/PubUtilLib/plGLight/plShadowCaster.h index 1f122734..ab4225d9 100644 --- a/Sources/Plasma/PubUtilLib/plGLight/plShadowCaster.h +++ b/Sources/Plasma/PubUtilLib/plGLight/plShadowCaster.h @@ -79,7 +79,7 @@ protected: hsScalar fMaxOpacity; hsTArray fSpans; - friend plShadowMaster; + friend class plShadowMaster; void ICollectAllSpans(); diff --git a/Sources/Plasma/PubUtilLib/plInputCore/plAvatarInputInterface.h b/Sources/Plasma/PubUtilLib/plInputCore/plAvatarInputInterface.h index 17995759..b848bab4 100644 --- a/Sources/Plasma/PubUtilLib/plInputCore/plAvatarInputInterface.h +++ b/Sources/Plasma/PubUtilLib/plInputCore/plAvatarInputInterface.h @@ -249,4 +249,4 @@ class plAvatarInputInterface : public plInputInterface -#endif plAvatarInputInterface_inc +#endif //plAvatarInputInterface_inc diff --git a/Sources/Plasma/PubUtilLib/plInterp/plAnimPath.h b/Sources/Plasma/PubUtilLib/plInterp/plAnimPath.h index f131ea81..d9394ee9 100644 --- a/Sources/Plasma/PubUtilLib/plInterp/plAnimPath.h +++ b/Sources/Plasma/PubUtilLib/plInterp/plAnimPath.h @@ -169,4 +169,4 @@ public: virtual void Write(hsStream* s, hsResMgr* mgr); }; -#endif plAnimPath_inc +#endif //plAnimPath_inc diff --git a/Sources/Plasma/PubUtilLib/plMath/plAvg.cpp b/Sources/Plasma/PubUtilLib/plMath/plAvg.cpp index 41e3a9da..13761b06 100644 --- a/Sources/Plasma/PubUtilLib/plMath/plAvg.cpp +++ b/Sources/Plasma/PubUtilLib/plMath/plAvg.cpp @@ -68,7 +68,7 @@ void TimeBasedAvgRing::AddItem(T value, double time) // remove RingStart from the avg part of the average calc fTotal -= (*fRingStart).GetValue(); - TimeList::iterator prev = fRingStart++; + typename TimeList::iterator prev = fRingStart++; // loop the ring if needed if (fRingStart == fList.end()) diff --git a/Sources/Plasma/PubUtilLib/plMessage/plAvatarMsg.h b/Sources/Plasma/PubUtilLib/plMessage/plAvatarMsg.h index 547810c1..795f7484 100644 --- a/Sources/Plasma/PubUtilLib/plMessage/plAvatarMsg.h +++ b/Sources/Plasma/PubUtilLib/plMessage/plAvatarMsg.h @@ -301,7 +301,7 @@ public: \param stage Which stage are we setting the loop count for? \param newLoopCount The loop count we are setting on the stage */ - plAvBrainGenericMsg::plAvBrainGenericMsg(plKey sender, plKey receiver, + plAvBrainGenericMsg(plKey sender, plKey receiver, Type type, int stage, int newLoopCount); // plasma protocol CLASSNAME_REGISTER( plAvBrainGenericMsg ); diff --git a/Sources/Plasma/PubUtilLib/plMessage/plCondRefMsg.h b/Sources/Plasma/PubUtilLib/plMessage/plCondRefMsg.h index 048b7013..7e5f3281 100644 --- a/Sources/Plasma/PubUtilLib/plMessage/plCondRefMsg.h +++ b/Sources/Plasma/PubUtilLib/plMessage/plCondRefMsg.h @@ -38,7 +38,7 @@ class plCondRefMsg : public plRefMsg public: plCondRefMsg() { fWhich = -1; } - plCondRefMsg::plCondRefMsg(const plKey &s, int which) + plCondRefMsg(const plKey &s, int which) : plRefMsg(s, plRefMsg::kOnCreate), fWhich(which) {} CLASSNAME_REGISTER( plCondRefMsg ); diff --git a/Sources/Plasma/PubUtilLib/plMessage/plMatrixUpdateMsg.h b/Sources/Plasma/PubUtilLib/plMessage/plMatrixUpdateMsg.h index 48683b12..93e71996 100644 --- a/Sources/Plasma/PubUtilLib/plMessage/plMatrixUpdateMsg.h +++ b/Sources/Plasma/PubUtilLib/plMessage/plMatrixUpdateMsg.h @@ -51,4 +51,4 @@ public: }; -#endif plMatrixUpdateMsg_inc +#endif //plMatrixUpdateMsg_inc diff --git a/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.h b/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.h index 6f73f4da..ffd426aa 100644 --- a/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.h +++ b/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.h @@ -344,7 +344,7 @@ public: const plKey& GetAgeSDLObjectKey() const { return fAgeSDLObjectKey; } plUoid GetAgeSDLObjectUoid(const char* ageName) const; plNetClientComm& GetNetClientComm() { return fNetClientComm; } - const char* plNetClientMgr::GetNextAgeFilename(); + const char* GetNextAgeFilename(); plNetClientStats& GetNetClientStats() { return fNetClientStats; } void SetOverrideAgeTimeOfDayPercent(float f) { fOverrideAgeTimeOfDayPercent=f; } diff --git a/Sources/Plasma/PubUtilLib/plNetCommon/plNetCommonHelpers.h b/Sources/Plasma/PubUtilLib/plNetCommon/plNetCommonHelpers.h index 110c3f38..166642bd 100644 --- a/Sources/Plasma/PubUtilLib/plNetCommon/plNetCommonHelpers.h +++ b/Sources/Plasma/PubUtilLib/plNetCommon/plNetCommonHelpers.h @@ -38,7 +38,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #ifndef SERVER class plNetCoreStatsSummary : public plCreatable { - static const UInt8 plNetCoreStatsSummary::StreamVersion; + static const UInt8 StreamVersion; float fULBitsPS; float fDLBitsPS; float fULPeakBitsPS; diff --git a/Sources/Plasma/PubUtilLib/plParticleSystem/plParticleEmitter.h b/Sources/Plasma/PubUtilLib/plParticleSystem/plParticleEmitter.h index ecdaa368..6c65ce75 100644 --- a/Sources/Plasma/PubUtilLib/plParticleSystem/plParticleEmitter.h +++ b/Sources/Plasma/PubUtilLib/plParticleSystem/plParticleEmitter.h @@ -45,8 +45,8 @@ class hsResMgr; class plParticleEmitter : public plCreatable { - friend plParticleSystem; - friend plSimpleParticleGenerator; + friend class plParticleSystem; + friend class plSimpleParticleGenerator; public: plParticleEmitter(); diff --git a/Sources/Plasma/PubUtilLib/plParticleSystem/plParticleSystem.h b/Sources/Plasma/PubUtilLib/plParticleSystem/plParticleSystem.h index f69be40d..db0218a6 100644 --- a/Sources/Plasma/PubUtilLib/plParticleSystem/plParticleSystem.h +++ b/Sources/Plasma/PubUtilLib/plParticleSystem/plParticleSystem.h @@ -52,8 +52,8 @@ class Mtl; class plParticleSystem : public plModifier { - friend plParticleEmitter; - friend plSimpleParticleGenerator; + friend class plParticleEmitter; + friend class plSimpleParticleGenerator; protected: static const hsScalar GRAVITY_ACCEL_FEET_PER_SEC2; diff --git a/Sources/Plasma/PubUtilLib/plPhysX/plPXPhysicalControllerCore.h b/Sources/Plasma/PubUtilLib/plPhysX/plPXPhysicalControllerCore.h index b601655d..2748b9b7 100644 --- a/Sources/Plasma/PubUtilLib/plPhysX/plPXPhysicalControllerCore.h +++ b/Sources/Plasma/PubUtilLib/plPhysX/plPXPhysicalControllerCore.h @@ -50,7 +50,7 @@ public: #endif // PLASMA_EXTERNAL_RELEASE class plPXPhysicalControllerCore: public plPhysicalControllerCore { - friend PXControllerHitReportWalk; + friend class PXControllerHitReportWalk; public: plPXPhysicalControllerCore(plKey ownerSO, hsScalar height, hsScalar radius); ~plPXPhysicalControllerCore(); @@ -104,7 +104,7 @@ public: #ifndef PLASMA_EXTERNAL_RELEASE static hsBool fDebugDisplay; #endif // PLASMA_EXTERNAL_RELEASE - static void plPXPhysicalControllerCore::SetMaxNumberOfControllers(int max) { fPXControllersMax = max; } + static void SetMaxNumberOfControllers(int max) { fPXControllersMax = max; } static int fPXControllersMax; virtual int SweepControllerPath(const hsPoint3& startPos, const hsPoint3& endPos, hsBool vsDynamics, hsBool vsStatics, UInt32& vsSimGroups, std::multiset< plControllerSweepRecord >& WhatWasHitOut); virtual void BehaveLikeAnimatedPhysical(hsBool actLikeAnAnimatedPhys); @@ -127,14 +127,14 @@ protected: void ICreateController(); void IDeleteController(); void IInformDetectors(bool entering,bool deferUntilNextSim); - void plPXPhysicalControllerCore::ICreateController(const hsPoint3& pos); + void ICreateController(const hsPoint3& pos); NxActor* fKinematicActor; NxCapsuleController* fController; #ifndef PLASMA_EXTERNAL_RELEASE hsTArray fDbgCollisionInfo; void IDrawDebugDisplay(); #endif - void plPXPhysicalControllerCore::IHandleResize(); + void IHandleResize(); hsTArray fQueuedCollideMsgs; hsScalar fPreferedRadius; hsScalar fPreferedHeight; diff --git a/Sources/Plasma/PubUtilLib/plPhysical/plCollisionDetector.h b/Sources/Plasma/PubUtilLib/plPhysical/plCollisionDetector.h index 36eb9aa8..131186f8 100644 --- a/Sources/Plasma/PubUtilLib/plPhysical/plCollisionDetector.h +++ b/Sources/Plasma/PubUtilLib/plPhysical/plCollisionDetector.h @@ -287,4 +287,4 @@ public: CLASSNAME_REGISTER( plRidingAnimatedPhysicalDetector ); GETINTERFACE_ANY( plRidingAnimatedPhysicalDetector, plSimpleRegionSensor); }; -#endif plCollisionDetector_inc +#endif //plCollisionDetector_inc diff --git a/Sources/Plasma/PubUtilLib/plPhysical/plDetectorModifier.h b/Sources/Plasma/PubUtilLib/plPhysical/plDetectorModifier.h index 3f34ea44..773c1d8c 100644 --- a/Sources/Plasma/PubUtilLib/plPhysical/plDetectorModifier.h +++ b/Sources/Plasma/PubUtilLib/plPhysical/plDetectorModifier.h @@ -82,4 +82,4 @@ public: }; -#endif plDetectorModifier_inc +#endif //plDetectorModifier_inc diff --git a/Sources/Plasma/PubUtilLib/plPhysical/plSimDefs.h b/Sources/Plasma/PubUtilLib/plPhysical/plSimDefs.h index 0be9b4ec..a5468e46 100644 --- a/Sources/Plasma/PubUtilLib/plPhysical/plSimDefs.h +++ b/Sources/Plasma/PubUtilLib/plPhysical/plSimDefs.h @@ -120,4 +120,4 @@ namespace plSimDefs } -#endif PLSIMDEFS_H \ No newline at end of file +#endif //PLSIMDEFS_H diff --git a/Sources/Plasma/PubUtilLib/plPipeline/hsGDDrawDllLoad.h b/Sources/Plasma/PubUtilLib/plPipeline/hsGDDrawDllLoad.h index dc43b79f..a0bb9a1e 100644 --- a/Sources/Plasma/PubUtilLib/plPipeline/hsGDDrawDllLoad.h +++ b/Sources/Plasma/PubUtilLib/plPipeline/hsGDDrawDllLoad.h @@ -40,4 +40,4 @@ public: static HMODULE GetD3DDll(); }; -#endif hsGDDrawDllLoad_inc +#endif // hsGDDrawDllLoad_inc diff --git a/Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.h b/Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.h index 7181b99e..8fe229fb 100644 --- a/Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.h +++ b/Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.h @@ -523,8 +523,8 @@ protected: void ISetupTransforms(plDrawableSpans* drawable, const plSpan& span, hsMatrix44& lastL2W); // Plate management - friend plDXPlateManager; - friend plBinkPlayer; + friend class plDXPlateManager; + friend class plBinkPlayer; void IDrawPlate( plPlate *plate ); diff --git a/Sources/Plasma/PubUtilLib/plPipeline/plRenderTarget.h b/Sources/Plasma/PubUtilLib/plPipeline/plRenderTarget.h index b6fa64ff..434e2c31 100644 --- a/Sources/Plasma/PubUtilLib/plPipeline/plRenderTarget.h +++ b/Sources/Plasma/PubUtilLib/plPipeline/plRenderTarget.h @@ -51,7 +51,7 @@ class plCubicRenderTarget; class plRenderTarget : public plBitmap { - friend plCubicRenderTarget; + friend class plCubicRenderTarget; protected: diff --git a/Sources/Plasma/PubUtilLib/plResMgr/plLocalization.h b/Sources/Plasma/PubUtilLib/plResMgr/plLocalization.h index 888c8f5b..5a516cfe 100644 --- a/Sources/Plasma/PubUtilLib/plResMgr/plLocalization.h +++ b/Sources/Plasma/PubUtilLib/plResMgr/plLocalization.h @@ -43,7 +43,7 @@ public: kNumLanguages, }; - typedef enum encodingTypes + enum encodingTypes { Enc_Unencoded, // This can also mean that python did the decoding for us and we don't need to tweak it on our end Enc_Split_String, @@ -114,4 +114,4 @@ public: static std::vector StringToLocal(const std::wstring & localizedText); }; -#endif // plLocalization_h_inc \ No newline at end of file +#endif // plLocalization_h_inc diff --git a/Sources/Plasma/PubUtilLib/plSockets/plNet.h b/Sources/Plasma/PubUtilLib/plSockets/plNet.h index 74985054..9cbaa32c 100644 --- a/Sources/Plasma/PubUtilLib/plSockets/plNet.h +++ b/Sources/Plasma/PubUtilLib/plSockets/plNet.h @@ -83,7 +83,7 @@ struct plNet static int Listen(const SOCKET sck, const int qsize); static int Accept(const SOCKET sck, sockaddr_in * addr); static int Ioctl(const SOCKET sck, const long flags, unsigned long * val); - static const char * plNet::GetErrorMsg(int error); + static const char * GetErrorMsg(int error); // TODO: Add get/setsockopt() here ~plNet(); private: diff --git a/Sources/Plasma/PubUtilLib/plSurface/plLayerDepth.h b/Sources/Plasma/PubUtilLib/plSurface/plLayerDepth.h index b1f5b21d..53e25242 100644 --- a/Sources/Plasma/PubUtilLib/plSurface/plLayerDepth.h +++ b/Sources/Plasma/PubUtilLib/plSurface/plLayerDepth.h @@ -40,4 +40,4 @@ public: }; -#endif plLayerDepth_inc +#endif //plLayerDepth_inc diff --git a/Sources/Plasma/PubUtilLib/plSurface/plLayerOr.h b/Sources/Plasma/PubUtilLib/plSurface/plLayerOr.h index 2eaaf3a2..8c3f17c9 100644 --- a/Sources/Plasma/PubUtilLib/plSurface/plLayerOr.h +++ b/Sources/Plasma/PubUtilLib/plSurface/plLayerOr.h @@ -55,4 +55,4 @@ class plLayerOr : public plLayerInterface virtual UInt32 Eval(double secs, UInt32 frame, UInt32 ignore); }; -#endif _plLayerOr_h +#endif //_plLayerOr_h diff --git a/Sources/Plasma/PubUtilLib/plVault/plVaultClientApi.cpp b/Sources/Plasma/PubUtilLib/plVault/plVaultClientApi.cpp index ccb4f470..e029ddf8 100644 --- a/Sources/Plasma/PubUtilLib/plVault/plVaultClientApi.cpp +++ b/Sources/Plasma/PubUtilLib/plVault/plVaultClientApi.cpp @@ -3447,7 +3447,7 @@ void VaultAddChronicleEntry (const wchar entryName[], int entryType, const wchar } void _VaultAddChronicleEntryCB(ENetError result, void* state, void * param, RelVaultNode* node) { - if (result == ENetError::kNetSuccess) { + if (result == kNetSuccess) { RelVaultNode* rvnFldr = GetChildFolderNode(GetPlayerNode(), plVault::kChronicleFolder, 1); if (rvnFldr != nil) VaultAddChildNode(rvnFldr->nodeId, node->nodeId, 0, nil, nil);