From 738d2ab96997faa1e13b91e38cf8a0000d829f70 Mon Sep 17 00:00:00 2001 From: Wilson E. Alvarez Date: Mon, 21 Aug 2017 15:15:36 -0400 Subject: Removed unnecessary assignments --- modules/pbm/bitmap_loader_pbm.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/pbm/bitmap_loader_pbm.cpp') diff --git a/modules/pbm/bitmap_loader_pbm.cpp b/modules/pbm/bitmap_loader_pbm.cpp index c8f25ad68..93dedbd05 100644 --- a/modules/pbm/bitmap_loader_pbm.cpp +++ b/modules/pbm/bitmap_loader_pbm.cpp @@ -95,6 +95,9 @@ static bool _get_token(FileAccessRef &f, uint8_t &saved, PoolVector &r_ resized = true; } if (resized) { + // Note: Certain C++ static analyzers might point out that the following assigment is unnecessary. + // This is wrong since PoolVector::Write has an operator= method where the lhs gets updated under certain conditions. + // See core/dvector.h. w = PoolVector::Write(); r_token.resize(token_max); w = r_token.write(); -- cgit v1.2.3-70-g09d2