Skip to content

Commit 892e7b0

Browse files
HarshithaKPBridgeAR
authored andcommittedJan 3, 2020
src: suppress warning in src/node_env_var.cc
Initialise the superclass object in the copy constructor of mapKVStore PR-URL: #31136 Refs: #18983 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent c23bbc6 commit 892e7b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/node_env_var.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class MapKVStore final : public KVStore {
4747
std::shared_ptr<KVStore> Clone(Isolate* isolate) const override;
4848

4949
MapKVStore() = default;
50-
MapKVStore(const MapKVStore& other) : map_(other.map_) {}
50+
MapKVStore(const MapKVStore& other) : KVStore(), map_(other.map_) {}
5151

5252
private:
5353
mutable Mutex mutex_;

0 commit comments

Comments
 (0)
Please sign in to comment.