From d30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 Mon Sep 17 00:00:00 2001 From: Elton Chung Date: Sun, 19 Feb 2012 16:59:40 +0400 Subject: Get rid of size() == 0 --- registry/tools/regcompare.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'registry/tools') diff --git a/registry/tools/regcompare.cxx b/registry/tools/regcompare.cxx index c12e1c1f200f..5426d4cd81a0 100644 --- a/registry/tools/regcompare.cxx +++ b/registry/tools/regcompare.cxx @@ -262,11 +262,11 @@ bool Options_Impl::initOptions_Impl (std::vector< std::string > & rArgs) } } - if ( m_regName1.size() == 0 ) + if ( m_regName1.empty() ) { return badOption("missing", "-r1"); } - if ( m_regName2.size() == 0 ) + if ( m_regName2.empty() ) { return badOption("missing", "-r2"); } -- cgit