From e4708565f4e1fc08d09465dc60f7267ec561d4e3 Mon Sep 17 00:00:00 2001 From: wanghaoshuang Date: Tue, 24 Apr 2018 16:50:15 +0800 Subject: [PATCH] Fix cpplint format. --- paddle/fluid/inference/io.cc | 2 +- paddle/fluid/inference/io.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/inference/io.cc b/paddle/fluid/inference/io.cc index 9c37e0178a3..734b220a1d3 100644 --- a/paddle/fluid/inference/io.cc +++ b/paddle/fluid/inference/io.cc @@ -24,7 +24,7 @@ limitations under the License. */ namespace paddle { namespace inference { -void Init(std::vector &argv) { framework::Init(argv); } +void Init(const std::vector argv) { framework::Init(argv); } void ReadBinaryFile(const std::string& filename, std::string* contents) { std::ifstream fin(filename, std::ios::in | std::ios::binary); diff --git a/paddle/fluid/inference/io.h b/paddle/fluid/inference/io.h index 799693b0c5d..caf599b1a68 100644 --- a/paddle/fluid/inference/io.h +++ b/paddle/fluid/inference/io.h @@ -25,7 +25,7 @@ limitations under the License. */ namespace paddle { namespace inference { -void Init(std::vector &argv); +void Init(const std::vector argv); void LoadPersistables(framework::Executor* executor, framework::Scope* scope, const framework::ProgramDesc& main_program, -- GitLab