forked from H-uru/Plasma
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request H-uru#1505 from dgelessus/fix_plkey_ordering
Fix ordering operators for `plKey`
- Loading branch information
Showing
3 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ You can contact Cyan Worlds, Inc. by email [email protected] | |
#include "plResManager.h" | ||
|
||
#include "pnFactory/plFactory.h" | ||
#include "pnKeyedObject/plKey.h" | ||
#include "pnKeyedObject/plKeyImp.h" | ||
|
||
plResManager* IGetResMgr() { return (plResManager*)hsgResMgr::ResMgr(); } | ||
|
||
|
@@ -438,7 +438,7 @@ plKey plKeyFinder::IFindSceneNodeKey(plRegistryPageNode* page) const | |
{ | ||
if (keyList->fKeys.size() == 1) | ||
{ | ||
return plKey::Make((plKeyData*)keyList->fKeys[0]); | ||
return plKey::Make(keyList->fKeys[0]); | ||
} | ||
} | ||
|
||
|
@@ -453,7 +453,7 @@ plKey plKeyFinder::IFindSceneNodeKey(plRegistryPageNode* page) const | |
keyList = page->IGetKeyList(CLASS_INDEX_SCOPED(plSceneNode)); | ||
if (keyList && keyList->fKeys.size() == 1) | ||
{ | ||
retVal = plKey::Make((plKeyData*)keyList->fKeys[0]); | ||
retVal = plKey::Make(keyList->fKeys[0]); | ||
} | ||
// If we just loaded up all the keys for this page, then we | ||
// may have a bunch of keys with a refcount of 0. For any of | ||
|