From 3b48b3cc92c93911f61535d22a2c8731574ee51a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 15 Sep 2016 11:24:43 +0200 Subject: loplugin:singlevalfields in sc..vcl Change-Id: I68752a3daf5ddd8581c07759b8be2c1dabbb9258 --- shell/source/unix/sysshell/recently_used_file_handler.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'shell') diff --git a/shell/source/unix/sysshell/recently_used_file_handler.cxx b/shell/source/unix/sysshell/recently_used_file_handler.cxx index 9d19de32b555..d2393bf65dfc 100644 --- a/shell/source/unix/sysshell/recently_used_file_handler.cxx +++ b/shell/source/unix/sysshell/recently_used_file_handler.cxx @@ -307,18 +307,16 @@ namespace /* private */ { public: recent_item_writer( recently_used_file& file ) : file_(file), - max_items_to_write_(MAX_RECENTLY_USED_ITEMS), items_written_(0) {} void operator() (const recently_used_item* item) { - if (items_written_++ < max_items_to_write_) + if (items_written_++ < MAX_RECENTLY_USED_ITEMS) item->write_xml(file_); } private: recently_used_file& file_; - int max_items_to_write_; int items_written_; }; -- cgit