Skip to content

Commit 464382e

Browse files
guyingzhaonikias
authored andcommitted
C++: Dictionary: Update template definition for better readability
1 parent e6f3c6c commit 464382e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/plist/Dictionary.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ public :
6060
void Remove(Node* node);
6161
void Remove(const std::string& key);
6262
std::string GetNodeKey(Node* node);
63-
template <typename T>
64-
T* Get(const std::string& key)
65-
{
63+
template <typename T> T* Get(const std::string& key) {
6664
return (T*)(_map[key]);
6765
}
6866

0 commit comments

Comments
 (0)