From 68bce7825e4731b77d598ece1700762099f31637 Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 20 Feb 2015 17:57:18 +0100 Subject: [PATCH] Multiple definition fix --- components/files/constrainedfilestream.cpp | 7 +++++++ components/files/constrainedfilestream.hpp | 6 +----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/components/files/constrainedfilestream.cpp b/components/files/constrainedfilestream.cpp index 404fddfcb..fddfa7e52 100644 --- a/components/files/constrainedfilestream.cpp +++ b/components/files/constrainedfilestream.cpp @@ -104,4 +104,11 @@ namespace Files { delete rdbuf(); } + + + IStreamPtr openConstrainedFileStream(const char *filename, + size_t start, size_t length) + { + return IStreamPtr(new ConstrainedFileStream(filename, start, length)); + } } diff --git a/components/files/constrainedfilestream.hpp b/components/files/constrainedfilestream.hpp index 318a02294..069ceec58 100644 --- a/components/files/constrainedfilestream.hpp +++ b/components/files/constrainedfilestream.hpp @@ -19,11 +19,7 @@ public: typedef boost::shared_ptr IStreamPtr; -IStreamPtr openConstrainedFileStream(const char *filename, - size_t start=0, size_t length=0xFFFFFFFF) -{ - return IStreamPtr(new ConstrainedFileStream(filename, start, length)); -} +IStreamPtr openConstrainedFileStream(const char *filename, size_t start=0, size_t length=0xFFFFFFFF); }