adding const to variable to comply with google code convention...

may need to change more stuff though. Taint what else do you mean? Spaces, tabs, names?
This commit is contained in:
nachocano
2014-11-27 17:03:31 -08:00
parent 2f1ba40786
commit 21f3f3eec4
5 changed files with 8 additions and 17 deletions

View File

@@ -47,7 +47,7 @@ void Finalize(void) {
engine::Finalize();
}
#ifdef TEST
void SetMock(test::Mock& mock) {
void SetMock(const test::Mock& mock) {
engine::SetMock(mock);
}
#endif

View File

@@ -82,7 +82,7 @@ void Finalize(void);
IEngine *GetEngine(void);
#ifdef TEST
void SetMock(test::Mock& mock);
void SetMock(const test::Mock& mock);
#endif
} // namespace engine

View File

@@ -42,7 +42,7 @@ class SyncManager : public IEngine {
}
#ifdef TEST
inline void SetMock(test::Mock& mock) {
inline void SetMock(const test::Mock& mock) {
this->mock = mock;
}
#endif
@@ -501,7 +501,7 @@ void Init(int argc, char *argv[]) {
#ifdef TEST
/*! \brief sets a mock to the manager for testing purposes */
void SetMock(test::Mock& mock) {
void SetMock(const test::Mock& mock) {
manager.SetMock(mock);
}
#endif