summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar guyingzhao2025-04-06 12:25:02 +0200
committerGravatar Nikias Bassen2025-04-06 12:27:40 +0200
commit464382e6f835dd54eeea9e3ed7c1c8d2fb25dfd0 (patch)
treef08ebe4c827df4f49c87662dcad1ec8d8e7b802e /include
parente6f3c6c62111b37cc97db2d61a1c765695ee401a (diff)
downloadlibplist-464382e6f835dd54eeea9e3ed7c1c8d2fb25dfd0.tar.gz
libplist-464382e6f835dd54eeea9e3ed7c1c8d2fb25dfd0.tar.bz2
C++: Dictionary: Update template definition for better readability
Diffstat (limited to 'include')
-rw-r--r--include/plist/Dictionary.h4
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]);
}