Skip to content

Commit

Permalink
Refactor: Member variables of de::PathDirectoryNode now private
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Aug 11, 2012
1 parent a47f438 commit 7e83093
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/include/pathdirectory.h
Expand Up @@ -123,7 +123,7 @@ class PathDirectoryNode
/// @fixme should be private:
StringPoolId internId() const;

public:
private:
typedef struct pathdirectorynode_userdatapair_s {
StringPoolId internId;
void* data;
Expand Down
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/pathdirectory.cpp
Expand Up @@ -179,7 +179,7 @@ struct de::PathDirectory::Instance
de::PathDirectory::NodeHash::const_iterator i = ph->find(hash);
while(i != ph->end() && i.key() == hash)
{
if(parent == (*i)->parent() && internId == (*i)->pair.internId)
if(parent == (*i)->parent() && internId == (*i)->internId())
{
return *i;
}
Expand Down Expand Up @@ -863,7 +863,7 @@ void PathDirectory_DebugPrint(PathDirectory* pd, char delimiter)
const ddstring_t* de::PathDirectory::pathFragment(const de::PathDirectoryNode* node)
{
DENG2_ASSERT(node);
return StringPool_String(d->stringPool, node->pair.internId);
return StringPool_String(d->stringPool, node->internId());
}

ddstring_t* de::PathDirectory::composePath(const de::PathDirectoryNode* node,
Expand Down

0 comments on commit 7e83093

Please sign in to comment.