Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
c8d2c653
Kaydet (Commit)
c8d2c653
authored
Mar 18, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
webdav: fix various warnings
Change-Id: I86289c09b3694e5c48dffeb2de571d99e2484bd3
üst
228f3f6b
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
55 additions
and
98 deletions
+55
-98
Library_ucpdav1.mk
ucb/Library_ucpdav1.mk
+0
-2
ContentProperties.cxx
ucb/source/ucp/webdav/ContentProperties.cxx
+1
-1
ContentProperties.hxx
ucb/source/ucp/webdav/ContentProperties.hxx
+3
-2
SerfCallbacks.cxx
ucb/source/ucp/webdav/SerfCallbacks.cxx
+1
-1
SerfSession.cxx
ucb/source/ucp/webdav/SerfSession.cxx
+6
-25
SerfUri.cxx
ucb/source/ucp/webdav/SerfUri.cxx
+3
-20
UCBDeadPropertyValue.cxx
ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx
+10
-10
webdavcontent.cxx
ucb/source/ucp/webdav/webdavcontent.cxx
+21
-27
webdavcontent.hxx
ucb/source/ucp/webdav/webdavcontent.hxx
+5
-5
webdavcontentcaps.cxx
ucb/source/ucp/webdav/webdavcontentcaps.cxx
+3
-3
webdavresponseparser.cxx
ucb/source/ucp/webdav/webdavresponseparser.cxx
+2
-2
No files found.
ucb/Library_ucpdav1.mk
Dosyayı görüntüle @
c8d2c653
...
@@ -59,8 +59,6 @@ $(eval $(call gb_Library_add_exception_objects,ucpdav1,\
...
@@ -59,8 +59,6 @@ $(eval $(call gb_Library_add_exception_objects,ucpdav1,\
else # WITH_WEBDAV == serf
else # WITH_WEBDAV == serf
$(eval $(call gb_Library_set_warnings_not_errors,ucpdav1))
$(eval $(call gb_Library_use_externals,ucpdav1,\
$(eval $(call gb_Library_use_externals,ucpdav1,\
boost_headers \
boost_headers \
apr \
apr \
...
...
ucb/source/ucp/webdav/ContentProperties.cxx
Dosyayı görüntüle @
c8d2c653
...
@@ -595,7 +595,7 @@ CachableContentProperties::CachableContentProperties(
...
@@ -595,7 +595,7 @@ CachableContentProperties::CachableContentProperties(
void
CachableContentProperties
::
addProperties
(
void
CachableContentProperties
::
addProperties
(
const
ContentProperties
&
rProps
)
const
ContentProperties
&
rProps
)
{
{
const
std
::
auto
_ptr
<
PropertyValueMap
>
&
props
=
rProps
.
getProperties
();
const
boost
::
scoped
_ptr
<
PropertyValueMap
>
&
props
=
rProps
.
getProperties
();
PropertyValueMap
::
const_iterator
it
=
props
->
begin
();
PropertyValueMap
::
const_iterator
it
=
props
->
begin
();
const
PropertyValueMap
::
const_iterator
end
=
props
->
end
();
const
PropertyValueMap
::
const_iterator
end
=
props
->
end
();
...
...
ucb/source/ucp/webdav/ContentProperties.hxx
Dosyayı görüntüle @
c8d2c653
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include <memory>
#include <memory>
#include <vector>
#include <vector>
#include <boost/scoped_ptr.hpp>
#include <boost/unordered_map.hpp>
#include <boost/unordered_map.hpp>
#include <rtl/ustring.hxx>
#include <rtl/ustring.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Any.hxx>
...
@@ -173,12 +174,12 @@ public:
...
@@ -173,12 +174,12 @@ public:
// Not good to expose implementation details, but this is actually an
// Not good to expose implementation details, but this is actually an
// internal class.
// internal class.
const
std
::
auto
_ptr
<
PropertyValueMap
>
&
getProperties
()
const
const
boost
::
scoped
_ptr
<
PropertyValueMap
>
&
getProperties
()
const
{
return
m_xProps
;
}
{
return
m_xProps
;
}
private
:
private
:
OUString
m_aEscapedTitle
;
OUString
m_aEscapedTitle
;
std
::
auto
_ptr
<
PropertyValueMap
>
m_xProps
;
boost
::
scoped
_ptr
<
PropertyValueMap
>
m_xProps
;
bool
m_bTrailingSlash
;
bool
m_bTrailingSlash
;
static
com
::
sun
::
star
::
uno
::
Any
m_aEmptyAny
;
static
com
::
sun
::
star
::
uno
::
Any
m_aEmptyAny
;
...
...
ucb/source/ucp/webdav/SerfCallbacks.cxx
Dosyayı görüntüle @
c8d2c653
...
@@ -59,7 +59,7 @@ extern "C" apr_status_t Serf_Credentials( char **username,
...
@@ -59,7 +59,7 @@ extern "C" apr_status_t Serf_Credentials( char **username,
extern
"C"
apr_status_t
Serf_CertificateChainValidation
(
extern
"C"
apr_status_t
Serf_CertificateChainValidation
(
void
*
pSerfSession
,
void
*
pSerfSession
,
int
nFailures
,
int
nFailures
,
int
nErrorCode
,
int
/*nErrorCode*/
,
const
serf_ssl_certificate_t
*
const
*
pCertificateChainBase64Encoded
,
const
serf_ssl_certificate_t
*
const
*
pCertificateChainBase64Encoded
,
apr_size_t
nCertificateChainLength
)
apr_size_t
nCertificateChainLength
)
{
{
...
...
ucb/source/ucp/webdav/SerfSession.cxx
Dosyayı görüntüle @
c8d2c653
...
@@ -161,11 +161,11 @@ void SerfSession::Init()
...
@@ -161,11 +161,11 @@ void SerfSession::Init()
if
(
m_aProxyName
.
getLength
()
)
if
(
m_aProxyName
.
getLength
()
)
{
{
apr_sockaddr_t
*
proxy_address
=
NULL
;
apr_sockaddr_t
*
proxy_address
=
NULL
;
const
apr_status_t
status
=
apr_sockaddr_info_get
(
&
proxy_address
,
status
=
apr_sockaddr_info_get
(
&
proxy_address
,
OUStringToOString
(
m_aProxyName
,
RTL_TEXTENCODING_UTF8
).
getStr
(),
OUStringToOString
(
m_aProxyName
,
RTL_TEXTENCODING_UTF8
).
getStr
(),
APR_UNSPEC
,
APR_UNSPEC
,
static_cast
<
apr_port_t
>
(
m_nProxyPort
),
static_cast
<
apr_port_t
>
(
m_nProxyPort
),
0
,
getAprPool
()
);
0
,
getAprPool
()
);
if
(
status
!=
APR_SUCCESS
)
if
(
status
!=
APR_SUCCESS
)
{
{
...
@@ -345,25 +345,6 @@ apr_status_t SerfSession::provideSerfCredentials( bool bGiveProvidedCredentialsA
...
@@ -345,25 +345,6 @@ apr_status_t SerfSession::provideSerfCredentials( bool bGiveProvidedCredentialsA
return
theRetVal
!=
0
?
SERF_ERROR_AUTHN_FAILED
:
APR_SUCCESS
;
return
theRetVal
!=
0
?
SERF_ERROR_AUTHN_FAILED
:
APR_SUCCESS
;
}
}
namespace
{
// Helper function
OUString
GetHostnamePart
(
const
OUString
&
_rRawString
)
{
OUString
sPart
;
OUString
sPartId
=
"CN="
;
sal_Int32
nContStart
=
_rRawString
.
indexOf
(
sPartId
);
if
(
nContStart
!=
-
1
)
{
nContStart
+=
sPartId
.
getLength
();
sal_Int32
nContEnd
=
_rRawString
.
indexOf
(
','
,
nContStart
);
sPart
=
_rRawString
.
copy
(
nContStart
,
nContEnd
-
nContStart
);
}
return
sPart
;
}
}
// namespace
apr_status_t
SerfSession
::
verifySerfCertificateChain
(
apr_status_t
SerfSession
::
verifySerfCertificateChain
(
int
,
int
,
const
serf_ssl_certificate_t
*
const
*
pCertificateChainBase64Encoded
,
const
serf_ssl_certificate_t
*
const
*
pCertificateChainBase64Encoded
,
...
@@ -456,7 +437,7 @@ apr_status_t SerfSession::verifySerfCertificateChain (
...
@@ -456,7 +437,7 @@ apr_status_t SerfSession::verifySerfCertificateChain (
// done outside the isDomainMatch() block because the result is
// done outside the isDomainMatch() block because the result is
// used by the interaction handler.
// used by the interaction handler.
std
::
vector
<
uno
::
Reference
<
security
::
XCertificate
>
>
aChain
;
std
::
vector
<
uno
::
Reference
<
security
::
XCertificate
>
>
aChain
;
for
(
int
nIndex
=
1
;
nIndex
<
nCertificateChainLength
;
++
nIndex
)
for
(
nIndex
=
1
;
nIndex
<
nCertificateChainLength
;
++
nIndex
)
{
{
const
char
*
sBase64EncodedCertificate
(
const
char
*
sBase64EncodedCertificate
(
serf_ssl_cert_export
(
serf_ssl_cert_export
(
...
...
ucb/source/ucp/webdav/SerfUri.cxx
Dosyayı görüntüle @
c8d2c653
...
@@ -30,23 +30,6 @@
...
@@ -30,23 +30,6 @@
using
namespace
http_dav_ucp
;
using
namespace
http_dav_ucp
;
// Constructor
namespace
{
inline
bool
matchIgnoreAsciiCase
(
OString
const
&
rStr1
,
sal_Char
const
*
pStr2
,
sal_Int32
nStr2Len
)
SAL_THROW
(())
{
return
rtl_str_shortenedCompareIgnoreAsciiCase_WithLength
(
rStr1
.
getStr
(),
rStr1
.
getLength
(),
pStr2
,
nStr2Len
,
nStr2Len
)
==
0
;
}
}
SerfUri
::
SerfUri
(
const
apr_uri_t
*
inUri
)
SerfUri
::
SerfUri
(
const
apr_uri_t
*
inUri
)
throw
(
DAVException
)
throw
(
DAVException
)
:
mAprUri
(
*
inUri
)
:
mAprUri
(
*
inUri
)
...
@@ -100,7 +83,7 @@ SerfUri::SerfUri( const OUString & inUri )
...
@@ -100,7 +83,7 @@ SerfUri::SerfUri( const OUString & inUri )
}
}
if
(
!
mAprUri
.
path
)
if
(
!
mAprUri
.
path
)
{
{
mAprUri
.
path
=
"/"
;
mAprUri
.
path
=
(
char
*
)
"/"
;
}
}
init
(
&
mAprUri
);
init
(
&
mAprUri
);
...
@@ -170,7 +153,7 @@ void SerfUri::calculateURI ()
...
@@ -170,7 +153,7 @@ void SerfUri::calculateURI ()
if
(
bAppendPort
)
if
(
bAppendPort
)
{
{
aBuf
.
append
(
":"
);
aBuf
.
append
(
":"
);
aBuf
.
append
(
OUString
::
valueOf
(
mPort
)
);
aBuf
.
append
(
OUString
::
number
(
mPort
)
);
}
}
aBuf
.
append
(
mPath
);
aBuf
.
append
(
mPath
);
...
@@ -264,7 +247,7 @@ OUString SerfUri::makeConnectionEndPointString(
...
@@ -264,7 +247,7 @@ OUString SerfUri::makeConnectionEndPointString(
if
(
(
nPort
!=
DEFAULT_HTTP_PORT
)
&&
(
nPort
!=
DEFAULT_HTTPS_PORT
)
)
if
(
(
nPort
!=
DEFAULT_HTTP_PORT
)
&&
(
nPort
!=
DEFAULT_HTTPS_PORT
)
)
{
{
aBuf
.
append
(
":"
);
aBuf
.
append
(
":"
);
aBuf
.
append
(
OUString
::
valueOf
(
sal_Int32
(
nPort
)
)
);
aBuf
.
append
(
OUString
::
number
(
sal_Int32
(
nPort
)
)
);
}
}
return
aBuf
.
makeStringAndClear
();
return
aBuf
.
makeStringAndClear
();
}
}
...
...
ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx
Dosyayı görüntüle @
c8d2c653
...
@@ -64,14 +64,14 @@ const OUString UCBDeadPropertyValue::aXMLMid
...
@@ -64,14 +64,14 @@ const OUString UCBDeadPropertyValue::aXMLMid
const
OUString
UCBDeadPropertyValue
::
aXMLEnd
const
OUString
UCBDeadPropertyValue
::
aXMLEnd
=
OUString
(
"</value></ucbprop>"
);
=
OUString
(
"</value></ucbprop>"
);
/*
#define STATE_TOP (1)
#define STATE_TOP (1)
#define STATE_UCBPROP (STATE_TOP)
#define STATE_UCBPROP (STATE_TOP)
#define STATE_TYPE (STATE_TOP + 1)
#define STATE_TYPE (STATE_TOP + 1)
#define STATE_VALUE (STATE_TOP + 2)
#define STATE_VALUE (STATE_TOP + 2)
/*
extern "C" int UCBDeadPropertyValue_startelement_callback(
extern "C" int UCBDeadPropertyValue_startelement_callback(
void *,
void *,
int parent,
int parent,
...
@@ -456,7 +456,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
...
@@ -456,7 +456,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
// long
// long
sal_Int32
nValue
=
0
;
sal_Int32
nValue
=
0
;
rInData
>>=
nValue
;
rInData
>>=
nValue
;
aStringValue
=
OUString
::
valueOf
(
nValue
);
aStringValue
=
OUString
::
number
(
nValue
);
aStringType
=
aTypeLong
;
aStringType
=
aTypeLong
;
}
}
else
if
(
rType
==
getCppuType
(
static_cast
<
const
sal_Int16
*
>
(
0
)
)
)
else
if
(
rType
==
getCppuType
(
static_cast
<
const
sal_Int16
*
>
(
0
)
)
)
...
@@ -464,7 +464,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
...
@@ -464,7 +464,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
// short
// short
sal_Int32
nValue
=
0
;
sal_Int32
nValue
=
0
;
rInData
>>=
nValue
;
rInData
>>=
nValue
;
aStringValue
=
OUString
::
valueOf
(
nValue
);
aStringValue
=
OUString
::
number
(
nValue
);
aStringType
=
aTypeShort
;
aStringType
=
aTypeShort
;
}
}
else
if
(
rType
==
getCppuBooleanType
()
)
else
if
(
rType
==
getCppuBooleanType
()
)
...
@@ -472,7 +472,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
...
@@ -472,7 +472,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
// boolean
// boolean
sal_Bool
bValue
=
false
;
sal_Bool
bValue
=
false
;
rInData
>>=
bValue
;
rInData
>>=
bValue
;
aStringValue
=
OUString
::
valueOf
(
bValue
);
aStringValue
=
OUString
::
boolean
(
bValue
);
aStringType
=
aTypeBoolean
;
aStringType
=
aTypeBoolean
;
}
}
else
if
(
rType
==
getCppuCharType
()
)
else
if
(
rType
==
getCppuCharType
()
)
...
@@ -480,7 +480,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
...
@@ -480,7 +480,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
// char
// char
sal_Unicode
cValue
=
0
;
sal_Unicode
cValue
=
0
;
rInData
>>=
cValue
;
rInData
>>=
cValue
;
aStringValue
=
OUString
::
valueOf
(
cValue
);
aStringValue
=
OUString
(
cValue
);
aStringType
=
aTypeChar
;
aStringType
=
aTypeChar
;
}
}
else
if
(
rType
==
getCppuType
(
static_cast
<
const
sal_Int8
*
>
(
0
)
)
)
else
if
(
rType
==
getCppuType
(
static_cast
<
const
sal_Int8
*
>
(
0
)
)
)
...
@@ -488,7 +488,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
...
@@ -488,7 +488,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
// byte
// byte
sal_Int8
nValue
=
0
;
sal_Int8
nValue
=
0
;
rInData
>>=
nValue
;
rInData
>>=
nValue
;
aStringValue
=
OUString
::
valueOf
(
sal_Unicode
(
nValue
)
);
aStringValue
=
OUString
(
sal_Unicode
(
nValue
)
);
aStringType
=
aTypeByte
;
aStringType
=
aTypeByte
;
}
}
else
if
(
rType
==
getCppuType
(
static_cast
<
const
sal_Int64
*
>
(
0
)
)
)
else
if
(
rType
==
getCppuType
(
static_cast
<
const
sal_Int64
*
>
(
0
)
)
)
...
@@ -496,7 +496,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
...
@@ -496,7 +496,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
// hyper
// hyper
sal_Int64
nValue
=
0
;
sal_Int64
nValue
=
0
;
rInData
>>=
nValue
;
rInData
>>=
nValue
;
aStringValue
=
OUString
::
valueOf
(
nValue
);
aStringValue
=
OUString
::
number
(
nValue
);
aStringType
=
aTypeHyper
;
aStringType
=
aTypeHyper
;
}
}
else
if
(
rType
==
getCppuType
(
static_cast
<
const
float
*
>
(
0
)
)
)
else
if
(
rType
==
getCppuType
(
static_cast
<
const
float
*
>
(
0
)
)
)
...
@@ -504,7 +504,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
...
@@ -504,7 +504,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
// float
// float
float
nValue
=
0
;
float
nValue
=
0
;
rInData
>>=
nValue
;
rInData
>>=
nValue
;
aStringValue
=
OUString
::
valueOf
(
nValue
);
aStringValue
=
OUString
::
number
(
nValue
);
aStringType
=
aTypeFloat
;
aStringType
=
aTypeFloat
;
}
}
else
if
(
rType
==
getCppuType
(
static_cast
<
const
double
*
>
(
0
)
)
)
else
if
(
rType
==
getCppuType
(
static_cast
<
const
double
*
>
(
0
)
)
)
...
@@ -512,7 +512,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
...
@@ -512,7 +512,7 @@ bool UCBDeadPropertyValue::toXML( const uno::Any & rInData,
// double
// double
double
nValue
=
0
;
double
nValue
=
0
;
rInData
>>=
nValue
;
rInData
>>=
nValue
;
aStringValue
=
OUString
::
valueOf
(
nValue
);
aStringValue
=
OUString
::
number
(
nValue
);
aStringType
=
aTypeDouble
;
aStringType
=
aTypeDouble
;
}
}
else
else
...
...
ucb/source/ucp/webdav/webdavcontent.cxx
Dosyayı görüntüle @
c8d2c653
...
@@ -81,8 +81,8 @@ static void lcl_sendPartialGETRequest( bool &bError,
...
@@ -81,8 +81,8 @@ static void lcl_sendPartialGETRequest( bool &bError,
DAVException
&
aLastException
,
DAVException
&
aLastException
,
const
std
::
vector
<
rtl
::
OUString
>
aProps
,
const
std
::
vector
<
rtl
::
OUString
>
aProps
,
std
::
vector
<
rtl
::
OUString
>
&
aHeaderNames
,
std
::
vector
<
rtl
::
OUString
>
&
aHeaderNames
,
const
std
::
auto
_ptr
<
DAVResourceAccess
>
&
xResAccess
,
const
boost
::
scoped
_ptr
<
DAVResourceAccess
>
&
xResAccess
,
std
::
auto
_ptr
<
ContentProperties
>
&
xProps
,
boost
::
scoped
_ptr
<
ContentProperties
>
&
xProps
,
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>&
xEnv
)
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>&
xEnv
)
{
{
bool
bIsRequestSize
=
false
;
bool
bIsRequestSize
=
false
;
...
@@ -627,7 +627,7 @@ uno::Any SAL_CALL Content::execute(
...
@@ -627,7 +627,7 @@ uno::Any SAL_CALL Content::execute(
// {
// {
try
try
{
{
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
{
{
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
xResAccess
.
reset
(
new
DAVResourceAccess
(
*
m_xResAccess
.
get
()
)
);
xResAccess
.
reset
(
new
DAVResourceAccess
(
*
m_xResAccess
.
get
()
)
);
...
@@ -816,7 +816,7 @@ void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ )
...
@@ -816,7 +816,7 @@ void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ )
{
{
try
try
{
{
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
{
{
osl
::
MutexGuard
aGuard
(
m_aMutex
);
osl
::
MutexGuard
aGuard
(
m_aMutex
);
xResAccess
.
reset
(
new
DAVResourceAccess
(
*
m_xResAccess
.
get
()
)
);
xResAccess
.
reset
(
new
DAVResourceAccess
(
*
m_xResAccess
.
get
()
)
);
...
@@ -900,7 +900,7 @@ throw( beans::PropertyExistException,
...
@@ -900,7 +900,7 @@ throw( beans::PropertyExistException,
try
try
{
{
// Set property value at server.
// Set property value at server.
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
{
{
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
xResAccess
.
reset
(
new
DAVResourceAccess
(
*
m_xResAccess
.
get
()
)
);
xResAccess
.
reset
(
new
DAVResourceAccess
(
*
m_xResAccess
.
get
()
)
);
...
@@ -1012,7 +1012,7 @@ throw( beans::UnknownPropertyException,
...
@@ -1012,7 +1012,7 @@ throw( beans::UnknownPropertyException,
aProppatchValues
.
push_back
(
aValue
);
aProppatchValues
.
push_back
(
aValue
);
// Remove property value from server.
// Remove property value from server.
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
{
{
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
xResAccess
.
reset
(
new
DAVResourceAccess
(
*
m_xResAccess
.
get
()
)
);
xResAccess
.
reset
(
new
DAVResourceAccess
(
*
m_xResAccess
.
get
()
)
);
...
@@ -1299,7 +1299,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
...
@@ -1299,7 +1299,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
{
{
// Append all standard UCB, DAV and HTTP properties.
// Append all standard UCB, DAV and HTTP properties.
const
std
::
auto
_ptr
<
PropertyValueMap
>
&
xProps
=
rData
.
getProperties
();
const
boost
::
scoped
_ptr
<
PropertyValueMap
>
&
xProps
=
rData
.
getProperties
();
PropertyValueMap
::
const_iterator
it
=
xProps
->
begin
();
PropertyValueMap
::
const_iterator
it
=
xProps
->
begin
();
PropertyValueMap
::
const_iterator
end
=
xProps
->
end
();
PropertyValueMap
::
const_iterator
end
=
xProps
->
end
();
...
@@ -1332,9 +1332,9 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
...
@@ -1332,9 +1332,9 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>&
xEnv
)
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>&
xEnv
)
throw
(
uno
::
Exception
)
throw
(
uno
::
Exception
)
{
{
std
::
auto
_ptr
<
ContentProperties
>
xProps
;
boost
::
scoped
_ptr
<
ContentProperties
>
xProps
;
std
::
auto
_ptr
<
ContentProperties
>
xCachedProps
;
boost
::
scoped
_ptr
<
ContentProperties
>
xCachedProps
;
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
OUString
aUnescapedTitle
;
OUString
aUnescapedTitle
;
bool
bHasAll
=
false
;
bool
bHasAll
=
false
;
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
;
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
;
...
@@ -1679,7 +1679,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
...
@@ -1679,7 +1679,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
uno
::
Reference
<
ucb
::
XContentIdentifier
>
xIdentifier
;
uno
::
Reference
<
ucb
::
XContentIdentifier
>
xIdentifier
;
rtl
::
Reference
<
ContentProvider
>
xProvider
;
rtl
::
Reference
<
ContentProvider
>
xProvider
;
sal_Bool
bTransient
;
sal_Bool
bTransient
;
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
{
{
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
...
@@ -2138,7 +2138,6 @@ uno::Any Content::open(
...
@@ -2138,7 +2138,6 @@ uno::Any Content::open(
// Unreachable
// Unreachable
}
}
OUString
aURL
=
m_xIdentifier
->
getContentIdentifier
();
uno
::
Reference
<
io
::
XOutputStream
>
xOut
uno
::
Reference
<
io
::
XOutputStream
>
xOut
=
uno
::
Reference
<
io
::
XOutputStream
>
(
rArg
.
Sink
,
uno
::
UNO_QUERY
);
=
uno
::
Reference
<
io
::
XOutputStream
>
(
rArg
.
Sink
,
uno
::
UNO_QUERY
);
if
(
xOut
.
is
()
)
if
(
xOut
.
is
()
)
...
@@ -2146,7 +2145,7 @@ uno::Any Content::open(
...
@@ -2146,7 +2145,7 @@ uno::Any Content::open(
// PUSH: write data
// PUSH: write data
try
try
{
{
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
{
{
osl
::
MutexGuard
aGuard
(
m_aMutex
);
osl
::
MutexGuard
aGuard
(
m_aMutex
);
...
@@ -2191,7 +2190,7 @@ uno::Any Content::open(
...
@@ -2191,7 +2190,7 @@ uno::Any Content::open(
// PULL: wait for client read
// PULL: wait for client read
try
try
{
{
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
{
{
osl
::
MutexGuard
aGuard
(
m_aMutex
);
osl
::
MutexGuard
aGuard
(
m_aMutex
);
...
@@ -2261,7 +2260,7 @@ void Content::post(
...
@@ -2261,7 +2260,7 @@ void Content::post(
{
{
try
try
{
{
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
{
{
osl
::
MutexGuard
aGuard
(
m_aMutex
);
osl
::
MutexGuard
aGuard
(
m_aMutex
);
xResAccess
.
reset
(
xResAccess
.
reset
(
...
@@ -2295,7 +2294,7 @@ void Content::post(
...
@@ -2295,7 +2294,7 @@ void Content::post(
{
{
try
try
{
{
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
{
{
osl
::
MutexGuard
aGuard
(
m_aMutex
);
osl
::
MutexGuard
aGuard
(
m_aMutex
);
xResAccess
.
reset
(
xResAccess
.
reset
(
...
@@ -2394,7 +2393,7 @@ void Content::insert(
...
@@ -2394,7 +2393,7 @@ void Content::insert(
{
{
sal_Bool
bTransient
,
bCollection
;
sal_Bool
bTransient
,
bCollection
;
OUString
aEscapedTitle
;
OUString
aEscapedTitle
;
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
{
{
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
...
@@ -2639,7 +2638,7 @@ void Content::transfer(
...
@@ -2639,7 +2638,7 @@ void Content::transfer(
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
;
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
;
uno
::
Reference
<
ucb
::
XContentIdentifier
>
xIdentifier
;
uno
::
Reference
<
ucb
::
XContentIdentifier
>
xIdentifier
;
uno
::
Reference
<
ucb
::
XContentProvider
>
xProvider
;
uno
::
Reference
<
ucb
::
XContentProvider
>
xProvider
;
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
{
{
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
...
@@ -2871,7 +2870,6 @@ void Content::destroy( sal_Bool bDeletePhysical )
...
@@ -2871,7 +2870,6 @@ void Content::destroy( sal_Bool bDeletePhysical )
throw
(
uno
::
Exception
)
throw
(
uno
::
Exception
)
{
{
// @@@ take care about bDeletePhysical -> trashcan support
// @@@ take care about bDeletePhysical -> trashcan support
OUString
aURL
=
m_xIdentifier
->
getContentIdentifier
();
uno
::
Reference
<
ucb
::
XContent
>
xThis
=
this
;
uno
::
Reference
<
ucb
::
XContent
>
xThis
=
this
;
...
@@ -2927,7 +2925,7 @@ void Content::lock(
...
@@ -2927,7 +2925,7 @@ void Content::lock(
{
{
try
try
{
{
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
{
{
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
xResAccess
.
reset
(
new
DAVResourceAccess
(
*
m_xResAccess
.
get
()
)
);
xResAccess
.
reset
(
new
DAVResourceAccess
(
*
m_xResAccess
.
get
()
)
);
...
@@ -2966,7 +2964,7 @@ void Content::unlock(
...
@@ -2966,7 +2964,7 @@ void Content::unlock(
{
{
try
try
{
{
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
{
{
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
xResAccess
.
reset
(
new
DAVResourceAccess
(
*
m_xResAccess
.
get
()
)
);
xResAccess
.
reset
(
new
DAVResourceAccess
(
*
m_xResAccess
.
get
()
)
);
...
@@ -3289,7 +3287,7 @@ void Content::cancelCommandExecution(
...
@@ -3289,7 +3287,7 @@ void Content::cancelCommandExecution(
const
OUString
const
OUString
Content
::
getBaseURI
(
const
std
::
auto
_ptr
<
DAVResourceAccess
>
&
rResAccess
)
Content
::
getBaseURI
(
const
boost
::
scoped
_ptr
<
DAVResourceAccess
>
&
rResAccess
)
{
{
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_aMutex
);
...
@@ -3321,7 +3319,7 @@ Content::getBaseURI( const std::auto_ptr< DAVResourceAccess > & rResAccess )
...
@@ -3321,7 +3319,7 @@ Content::getBaseURI( const std::auto_ptr< DAVResourceAccess > & rResAccess )
const
Content
::
ResourceType
&
Content
::
getResourceType
(
const
Content
::
ResourceType
&
Content
::
getResourceType
(
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>&
xEnv
,
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>&
xEnv
,
const
std
::
auto
_ptr
<
DAVResourceAccess
>
&
rResAccess
)
const
boost
::
scoped
_ptr
<
DAVResourceAccess
>
&
rResAccess
)
throw
(
uno
::
Exception
)
throw
(
uno
::
Exception
)
{
{
if
(
m_eResourceType
==
UNKNOWN
)
if
(
m_eResourceType
==
UNKNOWN
)
...
@@ -3331,10 +3329,6 @@ const Content::ResourceType & Content::getResourceType(
...
@@ -3331,10 +3329,6 @@ const Content::ResourceType & Content::getResourceType(
ResourceType
eResourceType
;
ResourceType
eResourceType
;
eResourceType
=
m_eResourceType
;
eResourceType
=
m_eResourceType
;
const
OUString
&
rURL
=
rResAccess
->
getURL
();
const
OUString
aScheme
(
rURL
.
copy
(
0
,
rURL
.
indexOf
(
':'
)
).
toAsciiLowerCase
()
);
try
try
{
{
// Try to fetch some frequently used property value, e.g. those
// Try to fetch some frequently used property value, e.g. those
...
...
ucb/source/ucp/webdav/webdavcontent.hxx
Dosyayı görüntüle @
c8d2c653
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include <memory>
#include <memory>
#include <list>
#include <list>
#include <boost/scoped_ptr.hpp>
#include <rtl/ref.hxx>
#include <rtl/ref.hxx>
#include <com/sun/star/ucb/ContentCreationException.hpp>
#include <com/sun/star/ucb/ContentCreationException.hpp>
#include <com/sun/star/ucb/XContentCreator.hpp>
#include <com/sun/star/ucb/XContentCreator.hpp>
...
@@ -75,9 +76,8 @@ class Content : public ::ucbhelper::ContentImplHelper,
...
@@ -75,9 +76,8 @@ class Content : public ::ucbhelper::ContentImplHelper,
DAV
DAV
};
};
std
::
auto_ptr
<
DAVResourceAccess
>
m_xResAccess
;
boost
::
scoped_ptr
<
DAVResourceAccess
>
m_xResAccess
;
std
::
auto_ptr
<
CachableContentProperties
>
boost
::
scoped_ptr
<
CachableContentProperties
>
m_xCachedProps
;
// locally cached props
m_xCachedProps
;
// locally cached props
OUString
m_aEscapedTitle
;
OUString
m_aEscapedTitle
;
ResourceType
m_eResourceType
;
ResourceType
m_eResourceType
;
ContentProvider
*
m_pProvider
;
// No need for a ref, base class holds object
ContentProvider
*
m_pProvider
;
// No need for a ref, base class holds object
...
@@ -122,7 +122,7 @@ private:
...
@@ -122,7 +122,7 @@ private:
::
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>&
xNewId
);
::
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>&
xNewId
);
const
OUString
const
OUString
getBaseURI
(
const
std
::
auto
_ptr
<
DAVResourceAccess
>
&
rResAccess
);
getBaseURI
(
const
boost
::
scoped
_ptr
<
DAVResourceAccess
>
&
rResAccess
);
const
ResourceType
&
const
ResourceType
&
getResourceType
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
getResourceType
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
...
@@ -132,7 +132,7 @@ private:
...
@@ -132,7 +132,7 @@ private:
const
ResourceType
&
const
ResourceType
&
getResourceType
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
getResourceType
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>&
xEnv
,
::
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>&
xEnv
,
const
std
::
auto
_ptr
<
DAVResourceAccess
>
&
rResAccess
)
const
boost
::
scoped
_ptr
<
DAVResourceAccess
>
&
rResAccess
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
// Command "open"
// Command "open"
...
...
ucb/source/ucp/webdav/webdavcontentcaps.cxx
Dosyayı görüntüle @
c8d2c653
...
@@ -275,8 +275,8 @@ uno::Sequence< beans::Property > Content::getProperties(
...
@@ -275,8 +275,8 @@ uno::Sequence< beans::Property > Content::getProperties(
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
&
xEnv
)
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
&
xEnv
)
{
{
sal_Bool
bTransient
;
sal_Bool
bTransient
;
std
::
auto
_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped
_ptr
<
DAVResourceAccess
>
xResAccess
;
std
::
auto
_ptr
<
ContentProperties
>
xCachedProps
;
boost
::
scoped
_ptr
<
ContentProperties
>
xCachedProps
;
rtl
::
Reference
<
ContentProvider
>
xProvider
;
rtl
::
Reference
<
ContentProvider
>
xProvider
;
{
{
...
@@ -455,7 +455,7 @@ uno::Sequence< beans::Property > Content::getProperties(
...
@@ -455,7 +455,7 @@ uno::Sequence< beans::Property > Content::getProperties(
const
std
::
set
<
OUString
>::
const_iterator
set_end
const
std
::
set
<
OUString
>::
const_iterator
set_end
=
aPropSet
.
end
();
=
aPropSet
.
end
();
const
std
::
auto
_ptr
<
PropertyValueMap
>
&
xProps
const
boost
::
scoped
_ptr
<
PropertyValueMap
>
&
xProps
=
xCachedProps
->
getProperties
();
=
xCachedProps
->
getProperties
();
PropertyValueMap
::
const_iterator
map_it
=
xProps
->
begin
();
PropertyValueMap
::
const_iterator
map_it
=
xProps
->
begin
();
...
...
ucb/source/ucp/webdav/webdavresponseparser.cxx
Dosyayı görüntüle @
c8d2c653
...
@@ -170,8 +170,8 @@ namespace
...
@@ -170,8 +170,8 @@ namespace
const
OUString
&
getNamespace
()
const
{
return
maNamespace
;
}
const
OUString
&
getNamespace
()
const
{
return
maNamespace
;
}
const
OUString
&
getName
()
const
{
return
maName
;
}
const
OUString
&
getName
()
const
{
return
maName
;
}
const
WebDAVNamespace
getWebDAVNamespace
()
const
{
return
maWebDAVNamespace
;
}
const
WebDAVNamespace
&
getWebDAVNamespace
()
const
{
return
maWebDAVNamespace
;
}
const
WebDAVName
getWebDAVName
()
const
{
return
maWebDAVName
;
}
const
WebDAVName
&
getWebDAVName
()
const
{
return
maWebDAVName
;
}
};
};
void
WebDAVContext
::
parseForNamespaceTokens
(
const
uno
::
Reference
<
xml
::
sax
::
XAttributeList
>&
xAttribs
)
void
WebDAVContext
::
parseForNamespaceTokens
(
const
uno
::
Reference
<
xml
::
sax
::
XAttributeList
>&
xAttribs
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment