summaryrefslogtreecommitdiffstats
path: root/lzip.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 10:09:34 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 10:09:34 +0000
commit72164cf0d95398b5f82d96b9be1f931e06f8627c (patch)
tree928bd21186c7108845bca89226f712e5f089f9d1 /lzip.h
parentAdding upstream version 1.17. (diff)
downloadlzip-72164cf0d95398b5f82d96b9be1f931e06f8627c.tar.xz
lzip-72164cf0d95398b5f82d96b9be1f931e06f8627c.zip
Adding upstream version 1.18~pre1.upstream/1.18_pre1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'lzip.h')
-rw-r--r--lzip.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lzip.h b/lzip.h
index 9c16ef2..291e3e3 100644
--- a/lzip.h
+++ b/lzip.h
@@ -115,9 +115,11 @@ class Pretty_print
mutable bool first_post;
public:
- explicit Pretty_print( const std::vector< std::string > & filenames )
+ Pretty_print( const std::vector< std::string > & filenames,
+ const int verbosity )
: stdin_name( "(stdin)" ), longest_name( 0 ), first_post( false )
{
+ if( verbosity <= 0 ) return;
const unsigned stdin_name_len = std::strlen( stdin_name );
for( unsigned i = 0; i < filenames.size(); ++i )
{