diff options
Diffstat (limited to 'ucb/source/ucp/webdav/webdavresponseparser.cxx')
-rw-r--r-- | ucb/source/ucp/webdav/webdavresponseparser.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
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; } } |