From 717fa2a855460b94e532a4f0a9b39ac519c66c4f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 3 May 2009 11:01:52 +0000 Subject: [PATCH] 2009-05-03 Tatsuhiro Tsujikawa Code cleanup * test/MockPieceStorage.cc --- ChangeLog | 5 +++++ test/MockPieceStorage.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 72c56334..4c1bdca1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-05-03 Tatsuhiro Tsujikawa + + Code cleanup + * test/MockPieceStorage.cc + 2009-05-03 Tatsuhiro Tsujikawa Fixed the bug that read-only file with wrong file size will cause diff --git a/test/MockPieceStorage.h b/test/MockPieceStorage.h index 476735f4..ce398b45 100644 --- a/test/MockPieceStorage.h +++ b/test/MockPieceStorage.h @@ -181,7 +181,7 @@ public: return diskAdaptor; } - void setDiskAdaptor(const SharedHandle adaptor) { + void setDiskAdaptor(const SharedHandle& adaptor) { this->diskAdaptor = adaptor; }