diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-10-16 19:47:08 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-10-16 19:47:08 +0000 |
commit | 3dc92c36aa6f58a2ce2f57089501364dab6a44bc (patch) | |
tree | d48b2ca1cee14621dd7c51e3a6ba089ca18e43fe /searchcore | |
parent | 1ab845031009400d8222f2c4affffaeaba3ccd71 (diff) |
Remove the XXXFactory indirection. Just use static method on Alloc.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp b/searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp index 1983ff7a318..f57e464fae6 100644 --- a/searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp +++ b/searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp @@ -17,7 +17,6 @@ typedef vespalib::hash_set<uint32_t> UIntSet; typedef std::vector<vespalib::string> StringArray; typedef std::shared_ptr<StringArray> StringArraySP; using namespace vespalib::alloc; -using vespalib::DefaultAlloc; using vespalib::string; void @@ -49,7 +48,7 @@ shafile(const string &baseDir, string fullFile(prependBaseDir(baseDir, file)); FastOS_File f; std::ostringstream os; - Alloc buf = DefaultAlloc::create(65536, MemoryAllocator::HUGEPAGE_SIZE, 0x1000); + Alloc buf = Alloc::alloc(65536, MemoryAllocator::HUGEPAGE_SIZE, 0x1000); f.EnableDirectIO(); bool openres = f.OpenReadOnly(fullFile.c_str()); if (!openres) { |