summaryrefslogtreecommitdiff
path: root/core/pair.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/pair.h')
-rw-r--r--core/pair.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/pair.h b/core/pair.h
index 761caf7791..d4b1897537 100644
--- a/core/pair.h
+++ b/core/pair.h
@@ -37,9 +37,9 @@ struct Pair {
S second;
Pair() {}
- Pair(F p_first, S p_second) {
- first = p_first;
- second = p_second;
+ Pair(F p_first, S p_second)
+ : first(p_first),
+ second(p_second) {
}
};