diff options
| author | 2025-04-06 12:25:02 +0200 | |
|---|---|---|
| committer | 2025-04-06 12:27:40 +0200 | |
| commit | 464382e6f835dd54eeea9e3ed7c1c8d2fb25dfd0 (patch) | |
| tree | f08ebe4c827df4f49c87662dcad1ec8d8e7b802e /include/plist | |
| parent | e6f3c6c62111b37cc97db2d61a1c765695ee401a (diff) | |
| download | libplist-464382e6f835dd54eeea9e3ed7c1c8d2fb25dfd0.tar.gz libplist-464382e6f835dd54eeea9e3ed7c1c8d2fb25dfd0.tar.bz2 | |
C++: Dictionary: Update template definition for better readability
Diffstat (limited to 'include/plist')
| -rw-r--r-- | include/plist/Dictionary.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/plist/Dictionary.h b/include/plist/Dictionary.h index fc7e558..37ff1c9 100644 --- a/include/plist/Dictionary.h +++ b/include/plist/Dictionary.h @@ -60,9 +60,7 @@ public : void Remove(Node* node); void Remove(const std::string& key); std::string GetNodeKey(Node* node); - template <typename T> - T* Get(const std::string& key) - { + template <typename T> T* Get(const std::string& key) { return (T*)(_map[key]); } |
