diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-08-15 22:47:32 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-08-15 22:47:32 +0000 |
commit | 4f2464b28d36124d9b70581b42064dcf87ac2b1b (patch) | |
tree | 868864364db0276bee91367a5d9cadf1039ec5a7 /lib/backupstore | |
parent | 81afb5a2d918f2de818516520db792c2adeb5879 (diff) |
Compile fix for backwards compatibility code.
Diffstat (limited to 'lib/backupstore')
-rw-r--r-- | lib/backupstore/StoreTestUtils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backupstore/StoreTestUtils.h b/lib/backupstore/StoreTestUtils.h index 7ef2ce28..197a3345 100644 --- a/lib/backupstore/StoreTestUtils.h +++ b/lib/backupstore/StoreTestUtils.h @@ -83,7 +83,7 @@ bool delete_account(); #define TEST_PROTOCOL_ERROR_OR(protocol, error, or_statements) \ { \ int type, subtype; \ - protocol.GetLastError(type, subtype); \ + (protocol).GetLastError(type, subtype); \ if (type == BackupProtocolError::ErrorType) \ { \ TEST_EQUAL_LINE(BackupProtocolError::error, subtype, \ @@ -102,7 +102,7 @@ bool delete_account(); } #define TEST_COMMAND_RETURNS_ERROR_OR(protocol, command, error, or_statements) \ - TEST_CHECK_THROWS_OR(protocol . command, ConnectionException, \ + TEST_CHECK_THROWS_OR((protocol) . command, ConnectionException, \ Protocol_UnexpectedReply, or_statements); \ TEST_PROTOCOL_ERROR_OR(protocol, error, or_statements) |