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 : | |||
| 60 | void Remove(Node* node); | 60 | void Remove(Node* node); |
| 61 | void Remove(const std::string& key); | 61 | void Remove(const std::string& key); |
| 62 | std::string GetNodeKey(Node* node); | 62 | std::string GetNodeKey(Node* node); |
| 63 | template <typename T> | 63 | template <typename T> T* Get(const std::string& key) { |
| 64 | T* Get(const std::string& key) | ||
| 65 | { | ||
| 66 | return (T*)(_map[key]); | 64 | return (T*)(_map[key]); |
| 67 | } | 65 | } |
| 68 | 66 | ||
