astyle formatting

This commit is contained in:
Daniel Marjamäki 2018-03-29 17:25:20 +02:00
parent 70da3acb70
commit 1bc8f7f29a
2 changed files with 6 additions and 8 deletions

View File

@ -59,13 +59,13 @@ typename Range::const_iterator range_end(const Range& r)
}
template< class T, std::size_t N >
T* range_begin( T (&array)[N] )
T* range_begin(T(&array)[N])
{
return array;
}
template< class T, std::size_t N >
T* range_end( T (&array)[N] )
T* range_end(T(&array)[N])
{
return array+N;
}

View File

@ -23,22 +23,20 @@
class TestForeach : public TestFixture {
public:
TestForeach()
: TestFixture("TestForeach"), getVectorOnceCount(0)
TestForeach()
: TestFixture("TestForeach"), getVectorOnceCount(0)
{}
private:
int getVectorOnceCount;
const std::vector<int>& getVectorOnce()
{
const std::vector<int>& getVectorOnce() {
static std::vector<int> v(5, 2);
getVectorOnceCount++;
return v;
}
std::vector<int> getVector()
{
std::vector<int> getVector() {
std::vector<int> v(5, 2);
return v;
}