Changeset 85121 in vbox for trunk/src/VBox/Runtime/r3/xml.cpp
- Timestamp:
- Jul 8, 2020 7:33:26 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139061
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/xml.cpp
r84000 r85121 385 385 struct GlobalLock::Data 386 386 { 387 PFNEXTERNALENTITYLOADER p OldLoader;387 PFNEXTERNALENTITYLOADER pfnOldLoader; 388 388 RTCLock lock; 389 389 390 390 Data() 391 : p OldLoader(NULL),392 391 : pfnOldLoader(NULL) 392 , lock(gGlobal.sxml.lock) 393 393 { 394 394 } … … 402 402 GlobalLock::~GlobalLock() 403 403 { 404 if (m->p OldLoader)405 xmlSetExternalEntityLoader(m->p OldLoader);404 if (m->pfnOldLoader) 405 xmlSetExternalEntityLoader(m->pfnOldLoader); 406 406 delete m; 407 407 m = NULL; 408 408 } 409 409 410 void GlobalLock::setExternalEntityLoader(PFNEXTERNALENTITYLOADER p Loader)411 { 412 m->p OldLoader = xmlGetExternalEntityLoader();413 xmlSetExternalEntityLoader(p Loader);410 void GlobalLock::setExternalEntityLoader(PFNEXTERNALENTITYLOADER pfnLoader) 411 { 412 m->pfnOldLoader = xmlGetExternalEntityLoader(); 413 xmlSetExternalEntityLoader(pfnLoader); 414 414 } 415 415 … … 1824 1824 //////////////////////////////////////////////////////////////////////////////// 1825 1825 1826 static void xmlParserBaseGenericError(void *pCtx, const char *pszMsg, ...) 1826 static void xmlParserBaseGenericError(void *pCtx, const char *pszMsg, ...) RT_NOTHROW_DEF 1827 1827 { 1828 1828 NOREF(pCtx); … … 1833 1833 } 1834 1834 1835 static void xmlParserBaseStructuredError(void *pCtx, xmlErrorPtr error) 1835 static void xmlParserBaseStructuredError(void *pCtx, xmlErrorPtr error) RT_NOTHROW_DEF 1836 1836 { 1837 1837 NOREF(pCtx); … … 2018 2018 } 2019 2019 2020 /*static*/ int XmlStringWriter::WriteCallbackForSize(void *pvUser, const char *pachBuf, int cbToWrite) 2020 /*static*/ int XmlStringWriter::WriteCallbackForSize(void *pvUser, const char *pachBuf, int cbToWrite) RT_NOTHROW_DEF 2021 2021 { 2022 2022 if (cbToWrite > 0) … … 2026 2026 } 2027 2027 2028 /*static*/ int XmlStringWriter::WriteCallbackForReal(void *pvUser, const char *pachBuf, int cbToWrite) 2028 /*static*/ int XmlStringWriter::WriteCallbackForReal(void *pvUser, const char *pachBuf, int cbToWrite) RT_NOTHROW_DEF 2029 2029 { 2030 2030 XmlStringWriter *pThis = static_cast<XmlStringWriter*>(pvUser); … … 2048 2048 } 2049 2049 2050 int XmlStringWriter::CloseCallback(void *pvUser) 2050 /*static*/ int XmlStringWriter::CloseCallback(void *pvUser) RT_NOTHROW_DEF 2051 2051 { 2052 2052 /* Nothing to do here. */ … … 2173 2173 } 2174 2174 2175 // static 2176 int XmlFileParser::ReadCallback(void *aCtxt, char *aBuf, int aLen) 2175 /*static*/ int XmlFileParser::ReadCallback(void *aCtxt, char *aBuf, int aLen) RT_NOTHROW_DEF 2177 2176 { 2178 2177 ReadContext *pContext = static_cast<ReadContext*>(aCtxt); … … 2193 2192 } 2194 2193 2195 int XmlFileParser::CloseCallback(void *aCtxt) 2194 /*static*/ int XmlFileParser::CloseCallback(void *aCtxt) RT_NOTHROW_DEF 2196 2195 { 2197 2196 /// @todo to be written … … 2301 2300 } 2302 2301 2303 int XmlFileWriter::WriteCallback(void *aCtxt, const char *aBuf, int aLen) 2302 /*static*/ int XmlFileWriter::WriteCallback(void *aCtxt, const char *aBuf, int aLen) RT_NOTHROW_DEF 2304 2303 { 2305 2304 WriteContext *pContext = static_cast<WriteContext*>(aCtxt); … … 2319 2318 } 2320 2319 2321 int XmlFileWriter::CloseCallback(void *aCtxt) 2320 /*static*/ int XmlFileWriter::CloseCallback(void *aCtxt) RT_NOTHROW_DEF 2322 2321 { 2323 2322 /// @todo to be written
Note:
See TracChangeset
for help on using the changeset viewer.