summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-10-16 19:47:08 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2016-10-16 19:47:08 +0000
commit3dc92c36aa6f58a2ce2f57089501364dab6a44bc (patch)
treed48b2ca1cee14621dd7c51e3a6ba089ca18e43fe /searchcore
parent1ab845031009400d8222f2c4affffaeaba3ccd71 (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.cpp3
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) {