[PATCH 2/2] Using empty() instead of size() == 0 (broad fix for cppcheck's Possible inefficient checking for '<sth>' emptiness)

Mariusz Dykierek MariuszDykierek at gmail.com
Sun Feb 19 09:35:42 PST 2012


---
 ucb/source/ucp/webdav/NeonHeadRequest.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ucb/source/ucp/webdav/NeonHeadRequest.cxx b/ucb/source/ucp/webdav/NeonHeadRequest.cxx
index f219b6c..f930fb1 100644
--- a/ucb/source/ucp/webdav/NeonHeadRequest.cxx
+++ b/ucb/source/ucp/webdav/NeonHeadRequest.cxx
@@ -49,7 +49,7 @@ void process_headers( ne_request * req,
         rtl::OUString aHeaderValue( rtl::OUString::createFromAscii( value ) );
 
         // Note: Empty vector means that all headers are requested.
-        bool bIncludeIt = rHeaderNames.empyt();
+        bool bIncludeIt = rHeaderNames.empty();
 
         if ( !bIncludeIt )
         {
-- 
1.7.5.4


--------------070604070306010003010904--


More information about the LibreOffice mailing list