summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-09-15 11:24:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-15 11:30:42 +0200
commit3b48b3cc92c93911f61535d22a2c8731574ee51a (patch)
tree2602c98df9d414d803e94bf9f80780d4395b8d8f /shell
parentb79b5e0df6dc5a0ba18054b0503d6fa804b69f02 (diff)
loplugin:singlevalfields in sc..vcl
Change-Id: I68752a3daf5ddd8581c07759b8be2c1dabbb9258
Diffstat (limited to 'shell')
-rw-r--r--shell/source/unix/sysshell/recently_used_file_handler.cxx4
1 files changed, 1 insertions, 3 deletions
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_;
};