Răsfoiți Sursa

Removed noops and warnings on unused variables.

Marcel Metz 12 ani în urmă
părinte
comite
c3852c4743

+ 1 - 2
tools/assimp_view/HelpDialog.cpp

@@ -53,7 +53,7 @@ namespace AssimpView {
 INT_PTR CALLBACK HelpDialogProc(HWND hwndDlg,UINT uMsg,
 INT_PTR CALLBACK HelpDialogProc(HWND hwndDlg,UINT uMsg,
 	WPARAM wParam,LPARAM lParam)
 	WPARAM wParam,LPARAM lParam)
 	{
 	{
-	lParam;
+	(void)lParam;
 	switch (uMsg)
 	switch (uMsg)
 		{
 		{
 		case WM_INITDIALOG:
 		case WM_INITDIALOG:
@@ -70,7 +70,6 @@ INT_PTR CALLBACK HelpDialogProc(HWND hwndDlg,UINT uMsg,
 			SendDlgItemMessage(hwndDlg,IDC_RICHEDIT21,
 			SendDlgItemMessage(hwndDlg,IDC_RICHEDIT21,
 				EM_SETTEXTEX,(WPARAM)&sInfo,( LPARAM) pData);
 				EM_SETTEXTEX,(WPARAM)&sInfo,( LPARAM) pData);
 
 
-			UnlockResource(hg);
 			FreeResource(hg);
 			FreeResource(hg);
 			return TRUE;
 			return TRUE;
 			}
 			}

+ 1 - 1
tools/assimp_view/LogWindow.cpp

@@ -70,7 +70,7 @@ static const char* AI_VIEW_RTF_LOG_HEADER =
 INT_PTR CALLBACK LogDialogProc(HWND hwndDlg,UINT uMsg,
 INT_PTR CALLBACK LogDialogProc(HWND hwndDlg,UINT uMsg,
 	WPARAM wParam,LPARAM lParam)
 	WPARAM wParam,LPARAM lParam)
 	{
 	{
-	lParam;
+	(void)lParam;
 	switch (uMsg)
 	switch (uMsg)
 		{
 		{
 		case WM_INITDIALOG:
 		case WM_INITDIALOG:

+ 0 - 4
tools/assimp_view/assimp_view.cpp

@@ -872,12 +872,10 @@ int CreateHUDTexture()
 		g_pcTexture  = NULL;
 		g_pcTexture  = NULL;
 		g_szImageMask = NULL;
 		g_szImageMask = NULL;
 
 
-		UnlockResource(hg);
 		FreeResource(hg);
 		FreeResource(hg);
 		return 0;
 		return 0;
 	}
 	}
 
 
-	UnlockResource(hg);
 	FreeResource(hg);
 	FreeResource(hg);
 
 
 	D3DSURFACE_DESC sDesc;
 	D3DSURFACE_DESC sDesc;
@@ -909,12 +907,10 @@ int CreateHUDTexture()
 			D3DCOLOR_ARGB(0xFF,0xFF,0,0));
 			D3DCOLOR_ARGB(0xFF,0xFF,0,0));
 		g_szImageMask = NULL;
 		g_szImageMask = NULL;
 
 
-		UnlockResource(hg);
 		FreeResource(hg);
 		FreeResource(hg);
 		return 0;
 		return 0;
 	}
 	}
 
 
-	UnlockResource(hg);
 	FreeResource(hg);
 	FreeResource(hg);
 
 
 	// lock the texture and copy it to get a pointer
 	// lock the texture and copy it to get a pointer