diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-01 11:35:26 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-01 12:48:52 +0200 |
commit | 16067d4f903bebc506daa8149f9b15f1f1b4e629 (patch) | |
tree | 64357d09506709223d8433efeb12e5493cafd16d | |
parent | def71473d25e88729c644e35523d267c8cd04e57 (diff) |
loplugin:unuseddefaultparam in shell
Change-Id: Ib14fd4f7f0a23f83801f448aa2c22e550057ec71
-rw-r--r-- | shell/source/unix/sysshell/recently_used_file.cxx | 4 | ||||
-rw-r--r-- | shell/source/unix/sysshell/recently_used_file.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/shell/source/unix/sysshell/recently_used_file.cxx b/shell/source/unix/sysshell/recently_used_file.cxx index 2bf7d7eb30b0..5a9b4643081b 100644 --- a/shell/source/unix/sysshell/recently_used_file.cxx +++ b/shell/source/unix/sysshell/recently_used_file.cxx @@ -99,9 +99,9 @@ void recently_used_file::reset() const } -void recently_used_file::truncate(off_t length) +void recently_used_file::truncate() { - if (ftruncate(fileno(file_), length) == -1) + if (ftruncate(fileno(file_), 0) == -1) throw "I/O error: ftruncate failed"; } diff --git a/shell/source/unix/sysshell/recently_used_file.hxx b/shell/source/unix/sysshell/recently_used_file.hxx index 335361b0233d..88ba5d81d515 100644 --- a/shell/source/unix/sysshell/recently_used_file.hxx +++ b/shell/source/unix/sysshell/recently_used_file.hxx @@ -39,7 +39,7 @@ public: void reset() const; - void truncate(off_t length = 0); + void truncate(); size_t read( |