Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
rename/true-false
Michele Calgaro 4 months ago
parent bd6fa47f95
commit 91bb75ebee
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -320,7 +320,7 @@ static int insertMenuItemHelper( HMENU menu, UINT id, UINT position, const tstri
item_info.dwTypeData = (LPTSTR)text.c_str();
item_info.hSubMenu = hSubMenu;
}
if ( 0 == InsertMenuItem(menu, position, TRUE, &item_info) )
if ( 0 == InsertMenuItem(menu, position, true, &item_info) )
SYSERRORLOG(TEXT("InsertMenuItem"));
return id;
}
@ -568,7 +568,7 @@ DIFF_EXT::diff( const tstring& arguments )
{
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
if (CreateProcess(command.c_str(), (LPTSTR)commandLine.c_str(), 0, 0, FALSE, 0, 0, 0, &si, &pi) == 0)
if (CreateProcess(command.c_str(), (LPTSTR)commandLine.c_str(), 0, 0, false, 0, 0, 0, &si, &pi) == 0)
{
SYSERRORLOG(TEXT("CreateProcess") + command);
}

@ -156,7 +156,7 @@ int integrateWithClearCase( const char* subCommand, const char* kdiff3CommandPat
std::string kdiff3Command;
kdiff3Command.reserve( wKDiff3Command.length()+1 );
kdiff3Command.resize( wKDiff3Command.length() );
BOOL bUsedDefaultChar = FALSE;
BOOL bUsedDefaultChar = false;
int successLen = WideCharToMultiByte( CP_ACP, 0,
wKDiff3Command.c_str(), int(wKDiff3Command.length()),
&kdiff3Command[0], int(kdiff3Command.length()), 0, &bUsedDefaultChar );

@ -225,7 +225,7 @@ struct file_data {
lin nondiscarded_lines;
/* Vector, indexed by real origin-0 line number,
containing TRUE for a line that is an insertion or a deletion.
containing true for a line that is an insertion or a deletion.
The results of comparison are stored here. */
bool *changed;

@ -84,7 +84,7 @@ BOOL CShellContextMenu::GetContextMenu (void ** ppContextMenu, int & iMenuType)
LPCONTEXTMENU icm1 = NULL;
if ( m_psfFolder==0 )
return FALSE;
return false;
// first we retrieve the normal IContextMenu interface (every object should have it)
m_psfFolder->GetUIObjectOf (NULL, nItems, (LPCITEMIDLIST *) m_pidlArray, IID_IContextMenu, NULL, (void**) &icm1);
@ -104,9 +104,9 @@ BOOL CShellContextMenu::GetContextMenu (void ** ppContextMenu, int & iMenuType)
} // redirect ppContextMenu to version 1 interface
}
else
return (FALSE); // something went wrong
return (false); // something went wrong
return (TRUE); // success
return (true); // success
}
@ -133,7 +133,7 @@ LRESULT CALLBACK CShellContextMenu::HookWndProc(HWND hWnd, UINT message, WPARAM
g_IContext2->HandleMenuMsg (message, wParam, lParam);
else // version 3
g_IContext3->HandleMenuMsg (message, wParam, lParam);
return (message == WM_INITMENUPOPUP ? 0 : TRUE); // inform caller that we handled WM_INITPOPUPMENU by ourself
return (message == WM_INITMENUPOPUP ? 0 : true); // inform caller that we handled WM_INITPOPUPMENU by ourself
break;
default:
@ -279,7 +279,7 @@ void CShellContextMenu::SetObjects(const TQStringList &strList)
lpMalloc->Release ();
psfDesktop->Release ();
bDelete = TRUE; // indicates that m_psfFolder should be deleted by CShellContextMenu
bDelete = true; // indicates that m_psfFolder should be deleted by CShellContextMenu
}
@ -310,7 +310,7 @@ void CShellContextMenu::SetObjects(LPITEMIDLIST /*pidl*/)
lpMalloc->Release();
nItems = 1;
bDelete = TRUE; // indicates that m_psfFolder should be deleted by CShellContextMenu
bDelete = true; // indicates that m_psfFolder should be deleted by CShellContextMenu
*/
}
@ -331,7 +331,7 @@ void CShellContextMenu::SetObjects(IShellFolder *psfFolder, LPITEMIDLIST pidlIte
m_pidlArray[0] = CopyPIDL (pidlItem);
nItems = 1;
bDelete = FALSE; // indicates wheter m_psfFolder should be deleted by CShellContextMenu
bDelete = false; // indicates wheter m_psfFolder should be deleted by CShellContextMenu
}
void CShellContextMenu::SetObjects(IShellFolder * psfFolder, LPITEMIDLIST *pidlArray, int nItemCount)
@ -351,7 +351,7 @@ void CShellContextMenu::SetObjects(IShellFolder * psfFolder, LPITEMIDLIST *pidlA
m_pidlArray[i] = CopyPIDL (pidlArray[i]);
nItems = nItemCount;
bDelete = FALSE; // indicates wheter m_psfFolder should be deleted by CShellContextMenu
bDelete = false; // indicates wheter m_psfFolder should be deleted by CShellContextMenu
}

Loading…
Cancel
Save