Passing callbacks by reference

This commit is contained in:
Pavel Kirienko
2014-03-13 21:28:29 +04:00
parent 51833fb08f
commit b18e9c84ed
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ public:
StaticAssert<DataTypeKind(DataType::DataTypeKind) == DataTypeKindService>::check();
}
int start(Callback callback)
int start(const Callback& callback)
{
stop();
+1 -1
View File
@@ -43,7 +43,7 @@ public:
StaticAssert<DataTypeKind(DataType::DataTypeKind) == DataTypeKindMessage>::check();
}
int start(Callback callback)
int start(const Callback& callback)
{
stop();