summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-12-12 14:34:20 +0000
committerKurt Zenker <kz@openoffice.org>2007-12-12 14:34:20 +0000
commit38fe08ef31da8af435a608b5a78f98cc8a906086 (patch)
tree09552b885497fc34731c2a8322eba8438c0347ed /ucb
parent02cead63ee140e7ed481a94fb9836494a51a8b3e (diff)
INTEGRATION: CWS pmladek08 (1.19.32); FILE MERGED
2007/12/10 14:15:41 pmladek 1.19.32.1: #i82569# add back support for build with neon-0.24.X
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav/NeonUri.cxx22
1 files changed, 20 insertions, 2 deletions
diff --git a/ucb/source/ucp/webdav/NeonUri.cxx b/ucb/source/ucp/webdav/NeonUri.cxx
index d8d0621eecc7..e4069f2f43f8 100644
--- a/ucb/source/ucp/webdav/NeonUri.cxx
+++ b/ucb/source/ucp/webdav/NeonUri.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: NeonUri.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: vg $ $Date: 2007-12-07 10:22:24 $
+ * last change: $Author: kz $ $Date: 2007-12-12 15:34:20 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -73,24 +73,36 @@ using namespace webdav_ucp;
namespace {
const ne_uri g_sUriDefaultsHTTP = { "http",
+#if NEON_VERSION >= 0260
NULL,
+#endif
NULL,
DEFAULT_HTTP_PORT,
+#if NEON_VERSION >= 0260
NULL,
+#endif
NULL,
NULL };
const ne_uri g_sUriDefaultsHTTPS = { "https",
+#if NEON_VERSION >= 0260
NULL,
+#endif
NULL,
DEFAULT_HTTPS_PORT,
+#if NEON_VERSION >= 0260
NULL,
+#endif
NULL,
NULL };
const ne_uri g_sUriDefaultsFTP = { "ftp",
+#if NEON_VERSION >= 0260
NULL,
+#endif
NULL,
DEFAULT_FTP_PORT,
+#if NEON_VERSION >= 0260
NULL,
+#endif
NULL,
NULL };
} // namespace
@@ -176,7 +188,11 @@ void NeonUri::init( const rtl::OString & rUri, const ne_uri * pUri )
pUri->scheme ? pUri->scheme : pUriDefs->scheme,
RTL_TEXTENCODING_UTF8 );
mUserInfo = rtl::OStringToOUString(
+#if NEON_VERSION >= 0260
pUri->userinfo ? pUri->userinfo : pUriDefs->userinfo,
+#else
+ pUri->authinfo ? pUri->authinfo : pUriDefs->authinfo,
+#endif
RTL_TEXTENCODING_UTF8 );
mHostName = rtl::OStringToOUString(
pUri->host ? pUri->host : pUriDefs->host,
@@ -186,6 +202,7 @@ void NeonUri::init( const rtl::OString & rUri, const ne_uri * pUri )
pUri->path ? pUri->path : pUriDefs->path,
RTL_TEXTENCODING_UTF8 );
+#if NEON_VERSION >= 0260
if ( pUri->query )
{
mPath += rtl::OUString::createFromAscii( "?" );
@@ -199,6 +216,7 @@ void NeonUri::init( const rtl::OString & rUri, const ne_uri * pUri )
mPath += rtl::OStringToOUString(
pUri->fragment, RTL_TEXTENCODING_UTF8 );
}
+#endif
}
// -------------------------------------------------------------------