[Libreoffice-commits] .: ucb/source

Caolán McNamara caolan at kemper.freedesktop.org
Sun Dec 12 13:28:51 PST 2010


 ucb/source/ucp/webdav/NeonSession.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 257466c5cfec01370dbbfa885b46dfb39cfe2f03
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Dec 12 21:28:37 2010 +0000

    cppcheck: some variables unused depending on ifdefs

diff --git a/ucb/source/ucp/webdav/NeonSession.cxx b/ucb/source/ucp/webdav/NeonSession.cxx
index eb87fc9..7943d8a 100644
--- a/ucb/source/ucp/webdav/NeonSession.cxx
+++ b/ucb/source/ucp/webdav/NeonSession.cxx
@@ -1922,8 +1922,6 @@ int NeonSession::GET( ne_session * sess,
     //struct get_context ctx;
     ne_request * req = ne_request_create( sess, "GET", uri );
     int ret;
-    void *cursor = NULL;
-    const char *name, *value;
 
 #if NEON_VERSION < 0x0250
     if ( getheaders )
@@ -1941,6 +1939,8 @@ int NeonSession::GET( ne_session * sess,
 #if NEON_VERSION >= 0x0250
     if ( getheaders )
     {
+        void *cursor = NULL;
+        const char *name, *value;
         while ( ( cursor = ne_response_header_iterate(
                                req, cursor, &name, &value ) ) != NULL )
         {


More information about the Libreoffice-commits mailing list