Kaydet (Commit) 5eea018d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Clang -Wdangling-else, -Wuninitialized.

üst 82633cda
......@@ -266,7 +266,7 @@ protected:
{
// block here if the mutex has been acquired
Mutex* pGlobalMutex;
pGlobalMutex = pGlobalMutex->getGlobalMutex( );
pGlobalMutex = Mutex::getGlobalMutex( );
pGlobalMutex->acquire( );
printf("# Global Mutex acquired. \n" );
pGlobalMutex->release( );
......@@ -522,7 +522,7 @@ namespace osl_Mutex
void getGlobalMutex_001()
{
Mutex* pGlobalMutex;
pGlobalMutex = pGlobalMutex->getGlobalMutex();
pGlobalMutex = Mutex::getGlobalMutex();
pGlobalMutex->acquire();
GlobalMutexThread myThread;
......@@ -545,11 +545,11 @@ namespace osl_Mutex
sal_Bool bRes;
Mutex *pGlobalMutex;
pGlobalMutex = pGlobalMutex->getGlobalMutex( );
pGlobalMutex = Mutex::getGlobalMutex( );
pGlobalMutex->acquire( );
{
Mutex *pGlobalMutex1;
pGlobalMutex1 = pGlobalMutex1->getGlobalMutex( );
pGlobalMutex1 = Mutex::getGlobalMutex( );
bRes = pGlobalMutex1->release( );
}
......
......@@ -391,7 +391,9 @@ void parseUriRef(rtl_uString const * pUriRef, Components * pComponents)
sal_Unicode const * pPos = pBegin;
if (pPos != pEnd && isAlpha(*pPos))
{
for (sal_Unicode const * p = pPos + 1; p != pEnd; ++p)
{
if (*p == ':')
{
pComponents->aScheme.pBegin = pBegin;
......@@ -401,7 +403,11 @@ void parseUriRef(rtl_uString const * pUriRef, Components * pComponents)
}
else if (!isAlpha(*p) && !isDigit(*p) && *p != '+' && *p != '-'
&& *p != '.')
{
break;
}
}
}
if (pEnd - pPos >= 2 && pPos[0] == '/' && pPos[1] == '/')
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment