From df8268992ad472b3bc33f885668ad510fce71fd4 Mon Sep 17 00:00:00 2001 From: yuyang18 Date: Wed, 31 Aug 2016 16:01:18 +0000 Subject: [PATCH] Fix style check error in api. ISSUE=4611151 git-svn-id: https://svn.baidu.com/idl/trunk/paddle@1470 1ad973e4-5ce8-4261-8a94-b56d1f490c56 --- paddle/api/Arguments.cpp | 6 +++--- paddle/api/PaddleAPI.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/api/Arguments.cpp b/paddle/api/Arguments.cpp index f9f191c7117..8f73e762604 100644 --- a/paddle/api/Arguments.cpp +++ b/paddle/api/Arguments.cpp @@ -110,8 +110,8 @@ IVector* Arguments::getSlotSequenceStartPositions(size_t idx) const } } -IVector*Arguments::getSlotSubSequenceStartPositions(size_t idx) const - throw (RangeError){ +IVector* Arguments::getSlotSubSequenceStartPositions(size_t idx) const + throw(RangeError) { auto& a = m->getArg(idx); if (a.subSequenceStartPositions) { return IVector::createByPaddleVectorPtr( @@ -129,7 +129,7 @@ void Arguments::setSlotSequenceStartPositions(size_t idx, } void Arguments::setSlotSubSequenceStartPositions( - size_t idx, IVector *vec) throw (RangeError) { + size_t idx, IVector *vec) throw(RangeError) { auto& a = m->getArg(idx); auto& v = m->cast(vec->getSharedPtr()); a.subSequenceStartPositions = std::make_shared(v); diff --git a/paddle/api/PaddleAPI.h b/paddle/api/PaddleAPI.h index c92ed205d54..79487c4cf4d 100644 --- a/paddle/api/PaddleAPI.h +++ b/paddle/api/PaddleAPI.h @@ -392,7 +392,7 @@ public: void setSlotSequenceStartPositions(size_t idx, IVector* vec) throw(RangeError); void setSlotSubSequenceStartPositions(size_t idx, - IVector* vec) throw (RangeError); + IVector* vec) throw(RangeError); void setSlotSequenceDim(size_t idx, IVector* vec) throw(RangeError); private: -- GitLab