summaryrefslogtreecommitdiff
path: root/core/ordered_hash_map.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-05-19 15:46:49 +0200
committerRémi Verschelde <rverschelde@gmail.com>2020-05-19 15:57:56 +0200
commit85220fec010a4946cb364974eac69418b4e06411 (patch)
treec0b8b99f083180a03d0968c08cd0e6ca10b903b3 /core/ordered_hash_map.h
parent9b3d43cb974dd3407fd0936e486e34b8cec436e7 (diff)
Style: Remove unnecessary semicolons from `core`
Semicolons are not necessary after function definitions or control flow blocks, and having some code use them makes things inconsistent (and occasionally can mess up `clang-format`'s formatting). Removing them is tedious work though, I had to do this manually (regex + manual review) as I couldn't find a tool for that. All other code folders would need to get the same treatment.
Diffstat (limited to 'core/ordered_hash_map.h')
-rw-r--r--core/ordered_hash_map.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/ordered_hash_map.h b/core/ordered_hash_map.h
index 1f1be71741..e6a6340a2f 100644
--- a/core/ordered_hash_map.h
+++ b/core/ordered_hash_map.h
@@ -106,27 +106,27 @@ public:
const K &key() const {
CRASH_COND(!list_element);
return *(list_element->get().first);
- };
+ }
V &value() {
CRASH_COND(!list_element);
return list_element->get().second;
- };
+ }
const V &value() const {
CRASH_COND(!list_element);
return list_element->get().second;
- };
+ }
V &get() {
CRASH_COND(!list_element);
return list_element->get().second;
- };
+ }
const V &get() const {
CRASH_COND(!list_element);
return list_element->get().second;
- };
+ }
};
class ConstElement {
@@ -172,17 +172,17 @@ public:
const K &key() const {
CRASH_COND(!list_element);
return *(list_element->get().first);
- };
+ }
const V &value() const {
CRASH_COND(!list_element);
return list_element->get().second;
- };
+ }
const V &get() const {
CRASH_COND(!list_element);
return list_element->get().second;
- };
+ }
};
ConstElement find(const K &p_key) const {