From 7f6d9d8c110e1232b184b8226a306699eabefcd2 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 19 Oct 2009 15:36:35 +0000 Subject: [PATCH] (svn r17814) -Codechange: there's no need to invalidate the cache in the constructor of a CargoList; the list is empty, the CargoList is calloc-ed so all caches are 0. --- src/cargopacket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargopacket.h b/src/cargopacket.h index 692cbb91b3..13970e18e9 100644 --- a/src/cargopacket.h +++ b/src/cargopacket.h @@ -222,7 +222,7 @@ protected: public: /** Create the cargo list */ - FORCEINLINE CargoList() { this->InvalidateCache(); } + CargoList() {} /** And destroy it ("frees" all cargo packets) */ ~CargoList();