summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ccInstHelper.cpp2
-rw-r--r--src/gnudiff_diff.h2
-rw-r--r--src/kreplacements/ShellContextMenu.cpp16
3 files changed, 10 insertions, 10 deletions
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
}