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
26b4c8e5
Kaydet (Commit)
26b4c8e5
authored
Mar 19, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
webdav: loplugin warnings and sal_Bool -> bool
Change-Id: I0f1797aa03868e7652a0f90a5cf72ba851537b41
üst
910c2888
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
29 deletions
+29
-29
ContentProperties.cxx
ucb/source/ucp/webdav/ContentProperties.cxx
+18
-18
ContentProperties.hxx
ucb/source/ucp/webdav/ContentProperties.hxx
+1
-1
SerfRequestProcessorImpl.cxx
ucb/source/ucp/webdav/SerfRequestProcessorImpl.cxx
+1
-1
SerfSession.cxx
ucb/source/ucp/webdav/SerfSession.cxx
+1
-1
SerfSession.hxx
ucb/source/ucp/webdav/SerfSession.hxx
+1
-1
webdavcontent.cxx
ucb/source/ucp/webdav/webdavcontent.cxx
+0
-0
webdavcontent.hxx
ucb/source/ucp/webdav/webdavcontent.hxx
+7
-7
No files found.
ucb/source/ucp/webdav/ContentProperties.cxx
Dosyayı görüntüle @
26b4c8e5
...
...
@@ -113,27 +113,27 @@ ContentProperties::ContentProperties( const DAVResource& rResource )
}
if
(
rResource
.
uri
.
endsWith
(
"/"
)
)
m_bTrailingSlash
=
sal_T
rue
;
m_bTrailingSlash
=
t
rue
;
}
ContentProperties
::
ContentProperties
(
const
OUString
&
rTitle
,
sal_B
ool
bFolder
)
const
OUString
&
rTitle
,
b
ool
bFolder
)
:
m_xProps
(
new
PropertyValueMap
),
m_bTrailingSlash
(
sal_F
alse
)
m_bTrailingSlash
(
f
alse
)
{
(
*
m_xProps
)[
OUString
(
"Title"
)
]
=
PropertyValue
(
uno
::
makeAny
(
rTitle
),
true
);
(
*
m_xProps
)[
OUString
(
"IsFolder"
)
]
=
PropertyValue
(
uno
::
makeAny
(
bFolder
),
true
);
(
*
m_xProps
)[
OUString
(
"IsDocument"
)
]
=
PropertyValue
(
uno
::
makeAny
(
sal_B
ool
(
!
bFolder
)
),
true
);
=
PropertyValue
(
uno
::
makeAny
(
b
ool
(
!
bFolder
)
),
true
);
}
ContentProperties
::
ContentProperties
(
const
OUString
&
rTitle
)
:
m_xProps
(
new
PropertyValueMap
),
m_bTrailingSlash
(
sal_F
alse
)
m_bTrailingSlash
(
f
alse
)
{
(
*
m_xProps
)[
OUString
(
"Title"
)
]
=
PropertyValue
(
uno
::
makeAny
(
rTitle
),
true
);
...
...
@@ -142,7 +142,7 @@ ContentProperties::ContentProperties( const OUString & rTitle )
ContentProperties
::
ContentProperties
()
:
m_xProps
(
new
PropertyValueMap
),
m_bTrailingSlash
(
sal_F
alse
)
m_bTrailingSlash
(
f
alse
)
{
}
...
...
@@ -219,11 +219,11 @@ void ContentProperties::UCBNamesToDAVNames(
// resourcetype <- IsFolder, IsDocument, ContentType
// (taken from URI) <- Title
sal_Bool
bCreationDate
=
sal_F
alse
;
sal_Bool
bLastModified
=
sal_F
alse
;
sal_Bool
bContentType
=
sal_F
alse
;
sal_Bool
bContentLength
=
sal_F
alse
;
sal_Bool
bResourceType
=
sal_F
alse
;
bool
bCreationDate
=
f
alse
;
bool
bLastModified
=
f
alse
;
bool
bContentType
=
f
alse
;
bool
bContentLength
=
f
alse
;
bool
bResourceType
=
f
alse
;
sal_Int32
nCount
=
rProps
.
getLength
();
for
(
sal_Int32
n
=
0
;
n
<
nCount
;
++
n
)
...
...
@@ -241,7 +241,7 @@ void ContentProperties::UCBNamesToDAVNames(
if
(
!
bCreationDate
)
{
propertyNames
.
push_back
(
DAVProperties
::
CREATIONDATE
);
bCreationDate
=
sal_T
rue
;
bCreationDate
=
t
rue
;
}
}
else
if
(
rProp
.
Name
==
"DateModified"
||
...
...
@@ -251,7 +251,7 @@ void ContentProperties::UCBNamesToDAVNames(
{
propertyNames
.
push_back
(
DAVProperties
::
GETLASTMODIFIED
);
bLastModified
=
sal_T
rue
;
bLastModified
=
t
rue
;
}
}
else
if
(
rProp
.
Name
==
"MediaType"
||
...
...
@@ -261,7 +261,7 @@ void ContentProperties::UCBNamesToDAVNames(
{
propertyNames
.
push_back
(
DAVProperties
::
GETCONTENTTYPE
);
bContentType
=
sal_T
rue
;
bContentType
=
t
rue
;
}
}
else
if
(
rProp
.
Name
==
"Size"
||
...
...
@@ -271,7 +271,7 @@ void ContentProperties::UCBNamesToDAVNames(
{
propertyNames
.
push_back
(
DAVProperties
::
GETCONTENTLENGTH
);
bContentLength
=
sal_T
rue
;
bContentLength
=
t
rue
;
}
}
else
if
(
rProp
.
Name
==
"ContentType"
||
...
...
@@ -282,7 +282,7 @@ void ContentProperties::UCBNamesToDAVNames(
if
(
!
bResourceType
)
{
propertyNames
.
push_back
(
DAVProperties
::
RESOURCETYPE
);
bResourceType
=
sal_T
rue
;
bResourceType
=
t
rue
;
}
}
else
...
...
@@ -514,13 +514,13 @@ void ContentProperties::addProperty( const OUString & rName,
rValue
>>=
aValue
;
// Map DAV:resourceype to UCP:IsFolder, UCP:IsDocument, UCP:ContentType
sal_B
ool
bFolder
=
b
ool
bFolder
=
aValue
.
equalsIgnoreAsciiCase
(
"collection"
);
(
*
m_xProps
)[
OUString
(
"IsFolder"
)
]
=
PropertyValue
(
uno
::
makeAny
(
bFolder
),
true
);
(
*
m_xProps
)[
OUString
(
"IsDocument"
)
]
=
PropertyValue
(
uno
::
makeAny
(
sal_B
ool
(
!
bFolder
)
),
true
);
=
PropertyValue
(
uno
::
makeAny
(
b
ool
(
!
bFolder
)
),
true
);
(
*
m_xProps
)[
OUString
(
"ContentType"
)
]
=
PropertyValue
(
uno
::
makeAny
(
bFolder
?
OUString
(
WEBDAV_COLLECTION_TYPE
)
...
...
ucb/source/ucp/webdav/ContentProperties.hxx
Dosyayı görüntüle @
26b4c8e5
...
...
@@ -102,7 +102,7 @@ public:
ContentProperties
(
const
DAVResource
&
rResource
);
// Mini props for transient contents.
ContentProperties
(
const
OUString
&
rTitle
,
sal_B
ool
bFolder
);
ContentProperties
(
const
OUString
&
rTitle
,
b
ool
bFolder
);
// Micro props for non-existing contents.
ContentProperties
(
const
OUString
&
rTitle
);
...
...
ucb/source/ucp/webdav/SerfRequestProcessorImpl.cxx
Dosyayı görüntüle @
26b4c8e5
...
...
@@ -119,7 +119,7 @@ bool SerfRequestProcessorImpl::processSerfResponseBucket( serf_request_t * /*inS
const
char
*
data
;
apr_size_t
len
;
while
(
1
)
{
while
(
true
)
{
outStatus
=
serf_bucket_read
(
inSerfResponseBucket
,
8096
,
&
data
,
&
len
);
if
(
SERF_BUCKET_READ_ERROR
(
outStatus
))
{
...
...
ucb/source/ucp/webdav/SerfSession.cxx
Dosyayı görüntüle @
26b4c8e5
...
...
@@ -1559,7 +1559,7 @@ SerfSession::getDataFromInputStream(
sal_Bool
SerfSession
::
isDomainMatch
(
OUString
certHostName
)
SerfSession
::
isDomainMatch
(
const
OUString
&
certHostName
)
{
OUString
hostName
=
getHostName
();
...
...
ucb/source/ucp/webdav/SerfSession.hxx
Dosyayı görüntüle @
26b4c8e5
...
...
@@ -250,7 +250,7 @@ public:
const
OUString
&
getHostName
()
const
{
return
m_aUri
.
GetHost
();
}
int
getPort
()
const
{
return
m_aUri
.
GetPort
();
}
sal_Bool
isDomainMatch
(
OUString
certHostName
);
sal_Bool
isDomainMatch
(
const
OUString
&
certHostName
);
private
:
friend
class
SerfLockStore
;
...
...
ucb/source/ucp/webdav/webdavcontent.cxx
Dosyayı görüntüle @
26b4c8e5
This diff is collapsed.
Click to expand it.
ucb/source/ucp/webdav/webdavcontent.hxx
Dosyayı görüntüle @
26b4c8e5
...
...
@@ -95,7 +95,7 @@ private:
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>
&
xEnv
);
virtual
OUString
getParentURL
();
sal_B
ool
isFolder
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
b
ool
isFolder
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>&
xEnv
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
...
...
@@ -117,7 +117,7 @@ private:
typedef
std
::
list
<
ContentRef
>
ContentRefList
;
void
queryChildren
(
ContentRefList
&
rChildren
);
sal_B
ool
b
ool
exchangeIdentity
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>&
xNewId
);
...
...
@@ -151,7 +151,7 @@ private:
// Command "insert"
void
insert
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XInputStream
>
&
xInputStream
,
sal_B
ool
bReplaceExisting
,
b
ool
bReplaceExisting
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>&
Environment
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
...
...
@@ -163,7 +163,7 @@ private:
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
// Command "delete"
void
destroy
(
sal_B
ool
bDeletePhysical
)
void
destroy
(
b
ool
bDeletePhysical
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
// Command "lock"
...
...
@@ -177,12 +177,12 @@ private:
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
::
com
::
sun
::
star
::
uno
::
Any
MapDAVException
(
const
DAVException
&
e
,
sal_B
ool
bWrite
);
b
ool
bWrite
);
void
cancelCommandExecution
(
const
DAVException
&
e
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>
&
xEnv
,
sal_Bool
bWrite
=
sal_F
alse
)
bool
bWrite
=
f
alse
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
static
bool
shouldAccessNetworkAfterException
(
const
DAVException
&
e
);
...
...
@@ -220,7 +220,7 @@ public:
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>&
Identifier
,
rtl
::
Reference
<
DAVSessionFactory
>
const
&
rSessionFactory
,
sal_B
ool
isCollection
)
b
ool
isCollection
)
throw
(
::
com
::
sun
::
star
::
ucb
::
ContentCreationException
);
virtual
~
Content
();
...
...
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