const Create

This commit is contained in:
Hieu Hoang 2017-01-22 21:53:26 +00:00
parent cf97f949c4
commit bc06487734
2 changed files with 6 additions and 6 deletions

View File

@ -15,7 +15,7 @@
LoaderPtr LoaderFactory::Create(
God &god,
const God &god,
const std::string& name,
const YAML::Node& config,
const std::string& mode) {
@ -42,7 +42,7 @@ LoaderPtr LoaderFactory::Create(
#ifdef CUDA
Loader *LoaderFactory::CreateGPU(
God &god,
const God &god,
const std::string& name,
const YAML::Node& config) {
UTIL_THROW_IF2(!config["type"],
@ -69,7 +69,7 @@ Loader *LoaderFactory::CreateGPU(
Loader *LoaderFactory::CreateCPU(
God &god,
const God &god,
const std::string& name,
const YAML::Node& config) {
UTIL_THROW_IF2(!config["type"],

View File

@ -17,17 +17,17 @@ do { \
class LoaderFactory {
public:
static LoaderPtr Create(God &god,
static LoaderPtr Create(const God &god,
const std::string& name,
const YAML::Node& config,
const std::string& mode);
protected:
static Loader *CreateCPU(God &god, const std::string& name,
static Loader *CreateCPU(const God &god, const std::string& name,
const YAML::Node& config);
static Loader *CreateGPU(God &god, const std::string& name,
static Loader *CreateGPU(const God &god, const std::string& name,
const YAML::Node& config);
#ifdef CUDA