summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-17 12:03:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-17 12:03:38 +0200
commitf52e295a102a44a41cecfff39f79b4db144b4271 (patch)
treed2dbf1ce7cc41cf93963d53837852536829c9734 /ucb
parentaeafca133405e4a5fdbe253f8dcd2019d6b6b2a4 (diff)
loplugin:cstylecast
Change-Id: I32a9feb5851691b02475e9eb5dbb024d3330b232
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav/SerfUri.cxx2
-rw-r--r--ucb/source/ucp/webdav/webdavresponseparser.cxx9
2 files changed, 5 insertions, 6 deletions
diff --git a/ucb/source/ucp/webdav/SerfUri.cxx b/ucb/source/ucp/webdav/SerfUri.cxx
index 894765580eba..1c116791c1f2 100644
--- a/ucb/source/ucp/webdav/SerfUri.cxx
+++ b/ucb/source/ucp/webdav/SerfUri.cxx
@@ -83,7 +83,7 @@ SerfUri::SerfUri( const OUString & inUri )
}
if ( !mAprUri.path )
{
- mAprUri.path = (char *)"/";
+ mAprUri.path = const_cast<char *>("/");
}
init( &mAprUri );
diff --git a/ucb/source/ucp/webdav/webdavresponseparser.cxx b/ucb/source/ucp/webdav/webdavresponseparser.cxx
index 95a451b72eac..f7a6ee5e0bd3 100644
--- a/ucb/source/ucp/webdav/webdavresponseparser.cxx
+++ b/ucb/source/ucp/webdav/webdavresponseparser.cxx
@@ -864,16 +864,15 @@ namespace
// get result
switch(eWebDAVResponseParserMode)
{
- // *(std::vector<T>*) & is a horrible hack but hopefully works,
- // I was not able to come up with something sane :-/
+ //TODO: Clean up reinterpret_casts:
case WebDAVResponseParserMode_PropFind:
- rResult = *(std::vector<T>*) &pWebDAVResponseParser->getResult_PropFind();
+ rResult = reinterpret_cast<std::vector<T> const &>(pWebDAVResponseParser->getResult_PropFind());
break;
case WebDAVResponseParserMode_PropName:
- rResult = *(std::vector<T>*) &pWebDAVResponseParser->getResult_PropName();
+ rResult = reinterpret_cast<std::vector<T> const &>(pWebDAVResponseParser->getResult_PropName());
break;
case WebDAVResponseParserMode_Lock:
- rResult = *(std::vector<T>*) &pWebDAVResponseParser->getResult_Lock();
+ rResult = reinterpret_cast<std::vector<T> const &>(pWebDAVResponseParser->getResult_Lock());
break;
}
}