summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2025-03-16 14:45:49 +0900
committerMichele Calgaro <[email protected]>2025-03-16 14:45:49 +0900
commit91bb75ebee061dc5c9686e01fb83c93202f420c3 (patch)
treee427258b574d39f6e0f93fc09a7d8cd2fa40aa64
parentbd6fa47f95c6f58ccc2b91094d9cee35750aede4 (diff)
downloadkdiff3-91bb75ebee061dc5c9686e01fb83c93202f420c3.tar.gz
kdiff3-91bb75ebee061dc5c9686e01fb83c93202f420c3.zip
Replace TRUE/FALSE with boolean values true/falserename/true-false
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r--diff_ext_for_kdiff3/diff_ext.cpp4
-rw-r--r--src/ccInstHelper.cpp2
-rw-r--r--src/gnudiff_diff.h2
-rw-r--r--src/kreplacements/ShellContextMenu.cpp16
4 files changed, 12 insertions, 12 deletions
diff --git a/diff_ext_for_kdiff3/diff_ext.cpp b/diff_ext_for_kdiff3/diff_ext.cpp
index f83f068..46bd579 100644
--- a/diff_ext_for_kdiff3/diff_ext.cpp
+++ b/diff_ext_for_kdiff3/diff_ext.cpp
@@ -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);
}
diff --git a/src/ccInstHelper.cpp b/src/ccInstHelper.cpp
index 055e2d6..1d8194c 100644
--- a/src/ccInstHelper.cpp
+++ b/src/ccInstHelper.cpp
@@ -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 );
diff --git a/src/gnudiff_diff.h b/src/gnudiff_diff.h
index 482435c..a3dd8ba 100644
--- a/src/gnudiff_diff.h
+++ b/src/gnudiff_diff.h
@@ -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;
diff --git a/src/kreplacements/ShellContextMenu.cpp b/src/kreplacements/ShellContextMenu.cpp
index e79b68c..754f25c 100644
--- a/src/kreplacements/ShellContextMenu.cpp
+++ b/src/kreplacements/ShellContextMenu.cpp
@@ -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
}