Optimize message() method of exceptions 59/30459/5
authorZofia Abramowska <z.abramowska@samsung.com>
Mon, 17 Nov 2014 16:48:30 +0000 (17:48 +0100)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Mon, 24 Nov 2014 20:00:01 +0000 (12:00 -0800)
commite0d4ea8fe95d59f0d6e21376e8d16b2c05b0495c
tree3023b2a910d68df97a10a57af501b0dc577e9a6d
parent668a60a5339b3078540c6cabfa199271c8d816a4
Optimize message() method of exceptions

message() returned std::string through value, causing unnecessary
copy. Changed it to return const std::string reference.

Change-Id: I8d9631fb2468924d35ba4376b1821d0d01c7f70c
21 files changed:
src/common/exceptions/BucketDeserializationException.h
src/common/exceptions/BucketNotExistsException.h
src/common/exceptions/BucketRecordCorruptedException.h
src/common/exceptions/BucketSerializationException.h
src/common/exceptions/CannotCreateFileException.h
src/common/exceptions/ContextErrorException.h
src/common/exceptions/DefaultBucketDeletionException.h
src/common/exceptions/DefaultBucketSetNoneException.h
src/common/exceptions/DescriptorNotExistsException.h
src/common/exceptions/Exception.h
src/common/exceptions/FileNotFoundException.h
src/common/exceptions/InitException.h
src/common/exceptions/InvalidBucketIdException.h
src/common/exceptions/InvalidProtocolException.h
src/common/exceptions/NoMemoryException.h
src/common/exceptions/NotImplementedException.h
src/common/exceptions/NullPointerException.h
src/common/exceptions/OutOfDataException.h
src/common/exceptions/PluginErrorException.h
src/common/exceptions/PluginNotFoundException.h
src/common/exceptions/UnexpectedErrorException.h