diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-25 16:41:44 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-25 16:41:44 -0700 |
commit | 28b30ff302ed535b1e81902f06d24c9e9fe61c19 (patch) | |
tree | 80887a7f8fa0c602ccb6c88257dc6b41bf51e2b1 /src/cstore/unionfs/cstore-unionfs.hpp | |
parent | 17e3a880453dc220e5a235df1e21dabfa89f1e8e (diff) | |
download | vyatta-cfg-28b30ff302ed535b1e81902f06d24c9e9fe61c19.tar.gz vyatta-cfg-28b30ff302ed535b1e81902f06d24c9e9fe61c19.zip |
switch to unordered_map
Diffstat (limited to 'src/cstore/unionfs/cstore-unionfs.hpp')
-rw-r--r-- | src/cstore/unionfs/cstore-unionfs.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cstore/unionfs/cstore-unionfs.hpp b/src/cstore/unionfs/cstore-unionfs.hpp index 90f28c5..3942e01 100644 --- a/src/cstore/unionfs/cstore-unionfs.hpp +++ b/src/cstore/unionfs/cstore-unionfs.hpp @@ -83,7 +83,7 @@ private: // path buffers b_fs::path mutable_cfg_path; // mutable part of config path b_fs::path tmpl_path; // whole template path - map<const void *, pair<b_fs::path, b_fs::path> > saved_paths; + Cstore::MapT<const void *, pair<b_fs::path, b_fs::path> > saved_paths; // saved mutable part of cfg path and whole template path ////// virtual functions defined in base class @@ -122,7 +122,7 @@ private: saved_paths[handle] = p; }; void restore_paths(const void *handle = NULL) { - map<const void *, pair<b_fs::path, b_fs::path> >::iterator it + Cstore::MapT<const void *, pair<b_fs::path, b_fs::path> >::iterator it = saved_paths.find(handle); if (it == saved_paths.end()) { exit_internal("restore_paths: handle not found\n"); |