diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-27 19:38:15 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-27 19:38:15 -0800 |
commit | 10f3ea0008a4563c2baa4f29954c285d2d53d7dc (patch) | |
tree | 8aedadea55a31de188be16a1ec140cdbc76adba5 /src/history.h | |
parent | 88a785e32117081b91b813ac6b5437deb33ef0f7 (diff) |
Mark a bunch of constructors as explicit
This prevents undesired implicit conversions
Diffstat (limited to 'src/history.h')
-rw-r--r-- | src/history.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/history.h b/src/history.h index 63372ba0..f99950aa 100644 --- a/src/history.h +++ b/src/history.h @@ -116,7 +116,7 @@ private: history_t &operator=(const history_t&); /** Private creator */ - history_t(const wcstring &pname); + explicit history_t(const wcstring &pname); /** Privately add an item. If pending, the item will not be returned by history searches until a call to resolve_pending. */ void add(const history_item_t &item, bool pending = false); @@ -348,7 +348,7 @@ void history_sanity_check(); struct file_detection_context_t { /* Constructor */ - file_detection_context_t(history_t *hist, history_identifier_t ident = 0); + explicit file_detection_context_t(history_t *hist, history_identifier_t ident = 0); /* Determine which of potential_paths are valid, and put them in valid_paths */ int perform_file_detection(); |