diff options
author | lloyd <[email protected]> | 2006-06-25 09:07:11 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-06-25 09:07:11 +0000 |
commit | 97529e8854a2e89bc839e013efd2b9b05479c148 (patch) | |
tree | b21d973df70c7734779904e5f8772a7f449f1356 /src/modules.cpp | |
parent | abdd958c0f4b1d880feec5e79230219005e43670 (diff) |
Have allocator objects 'know' their own names, rather than keeping them
around as ancillary strings.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 33731100c..ccbe65739 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -109,12 +109,12 @@ Timer* get_timer() /************************************************* * Find any usable allocators * *************************************************/ -std::map<std::string, Allocator*> get_allocators() +std::vector<Allocator*> get_allocators() { - std::map<std::string, Allocator*> allocators; + std::vector<Allocator*> allocators; #if defined(BOTAN_EXT_ALLOC_MMAP) - allocators["mmap"] = new MemoryMapping_Allocator; + allocators.push_back(new MemoryMapping_Allocator); #endif return allocators; |