Kaydet (Commit) 3332802f authored tarafından Kenneth Venken's avatar Kenneth Venken Kaydeden (comit) Caolán McNamara

Cpp cleanliness: redundant assignment to self

üst dd9197c7
......@@ -161,10 +161,10 @@ sal_Bool SAL_CALL osl_assertFailedLine(const sal_Char* pszFileName, sal_Int32 nL
return sal_True; /* will cause oslDebugBreak */
}
#endif /* NO_DEBUG_CRT */
return sal_False; /* not shure, not care */
return sal_False; /* not sure, don't care */
}
sal_Int32 SAL_CALL osl_reportError(sal_uInt32 nType, const sal_Char* pszMessage)
sal_Int32 SAL_CALL osl_reportError(sal_uInt32 /*nType*/, const sal_Char* pszMessage)
{
UINT nFlags;
int nDisposition;
......@@ -174,8 +174,6 @@ sal_Int32 SAL_CALL osl_reportError(sal_uInt32 nType, const sal_Char* pszMessage)
if (hWndParent != NULL)
hWndParent = GetLastActivePopup(hWndParent);
nType = nType; /* avoid warnings */
/* set message box flags */
nFlags = MB_TASKMODAL | MB_ICONERROR | MB_YESNOCANCEL | MB_DEFBUTTON2 | MB_SETFOREGROUND;
if (hWndParent == NULL)
......
......@@ -844,7 +844,7 @@ oslFileError SAL_CALL osl_openDirectory(rtl_uString *strDirectoryPath, oslDirect
//#####################################################
static oslFileError SAL_CALL osl_getNextNetResource(
oslDirectory Directory, oslDirectoryItem *pItem, sal_uInt32 uHint )
oslDirectory Directory, oslDirectoryItem *pItem, sal_uInt32 /*uHint*/ )
{
Directory_Impl *pDirImpl = (Directory_Impl *)Directory;
DirectoryItem_Impl *pItemImpl = NULL;
......@@ -852,8 +852,6 @@ static oslFileError SAL_CALL osl_getNextNetResource(
LPNETRESOURCEW lpNetResource = (LPNETRESOURCEW)buffer;
DWORD dwError, dwCount, dwBufSize;
uHint = uHint; /* to get no warning */
if ( !pItem )
return osl_File_E_INVAL;
*pItem = NULL;
......@@ -892,14 +890,12 @@ static oslFileError SAL_CALL osl_getNextNetResource(
//#####################################################
static oslFileError SAL_CALL osl_getNextDrive(
oslDirectory Directory, oslDirectoryItem *pItem, sal_uInt32 uHint )
oslDirectory Directory, oslDirectoryItem *pItem, sal_uInt32 /*uHint*/ )
{
Directory_Impl *pDirImpl = (Directory_Impl *)Directory;
DirectoryItem_Impl *pItemImpl = NULL;
BOOL fSuccess;
uHint = uHint; /* avoid warnings */
if ( !pItem )
return osl_File_E_INVAL;
*pItem = NULL;
......@@ -936,14 +932,12 @@ static oslFileError SAL_CALL osl_getNextDrive(
//#####################################################
static oslFileError SAL_CALL osl_getNextFileItem(
oslDirectory Directory, oslDirectoryItem *pItem, sal_uInt32 uHint)
oslDirectory Directory, oslDirectoryItem *pItem, sal_uInt32 /*uHint*/)
{
Directory_Impl *pDirImpl = (Directory_Impl *)Directory;
DirectoryItem_Impl *pItemImpl = NULL;
BOOL fFound;
uHint = uHint; /* avoid warnings */
if ( !pItem )
return osl_File_E_INVAL;
*pItem = NULL;
......
......@@ -46,7 +46,7 @@
/*****************************************************************************/
/* osl_loadModule */
/*****************************************************************************/
oslModule SAL_CALL osl_loadModule(rtl_uString *strModuleName, sal_Int32 nRtldMode )
oslModule SAL_CALL osl_loadModule(rtl_uString *strModuleName, sal_Int32 /*nRtldMode*/ )
{
HINSTANCE hInstance;
#if OSL_DEBUG_LEVEL < 2
......@@ -60,8 +60,6 @@ oslModule SAL_CALL osl_loadModule(rtl_uString *strModuleName, sal_Int32 nRtldMod
OSL_ASSERT(strModuleName);
nRtldMode = nRtldMode; /* avoid warnings */
nError = osl_getSystemPathFromFileURL(strModuleName, &Module);
if ( osl_File_E_None != nError )
......
......@@ -308,9 +308,9 @@ static oslSocketDialupImpl* __osl_createSocketDialupImpl (void)
*/
static void __osl_initSocketDialupImpl (oslSocketDialupImpl *pImpl)
{
#ifdef SOCKET_USE_AUTODIAL
if (pImpl)
{
#ifdef SOCKET_USE_AUTODIAL
HINSTANCE hModule;
EnterCriticalSection (&pImpl->m_hMutex);
......@@ -330,10 +330,8 @@ static void __osl_initSocketDialupImpl (oslSocketDialupImpl *pImpl)
}
LeaveCriticalSection (&pImpl->m_hMutex);
}
#else
pImpl = pImpl; /* avoid warnings */
#endif
}
}
/*
......
......@@ -30,9 +30,8 @@
extern sal_Bool SAL_CALL osl_getEthernetAddress( sal_uInt8 *pAddr )
extern sal_Bool SAL_CALL osl_getEthernetAddress( sal_uInt8* /*pAddr*/ )
{
pAddr = pAddr; /* avoid warnings */
return sal_False;
}
......
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