From 4f2464b28d36124d9b70581b42064dcf87ac2b1b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 15 Aug 2014 22:47:32 +0000 Subject: Compile fix for backwards compatibility code. --- lib/backupstore/StoreTestUtils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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) -- cgit v1.2.3