summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 40246c8)
raw | patch | inline | side by side (parent: 40246c8)
author | Jon A. Cruz <jon@joncruz.org> | |
Mon, 1 Mar 2010 03:21:55 +0000 (19:21 -0800) | ||
committer | Jon A. Cruz <jon@joncruz.org> | |
Mon, 1 Mar 2010 03:21:55 +0000 (19:21 -0800) |
src/io/sys.cpp | patch | blob | history | |
src/ui/dialog/filedialogimpl-win32.cpp | patch | blob | history |
diff --git a/src/io/sys.cpp b/src/io/sys.cpp
index f25575c9c236728197dab6f011a74740a43fb588..34160b64801f2c195a98515f47d7e92415d3d2ed 100644 (file)
--- a/src/io/sys.cpp
+++ b/src/io/sys.cpp
GetCurrentProcess (), &filehandle,
0, FALSE, DUPLICATE_SAME_ACCESS);
close (fd);
- return _open_osfhandle ((LONG_PTR) filehandle, mode | _O_NOINHERIT);
+ return _open_osfhandle(reinterpret_cast<LONG_PTR>(filehandle), mode | _O_NOINHERIT);
}
-
/* The helper process writes a status report back to us, through a
* pipe, consisting of two ints.
*/
index 3cdd61184c1caec0050998463ffd46f4f4311da9..0f3672f25a678614eccf7ff3483dae791ad139ff 100644 (file)
// Subclass the parent
pImpl->_base_window_proc = (WNDPROC)GetWindowLongPtr(hParentWnd, GWLP_WNDPROC);
- SetWindowLongPtr(hParentWnd, GWLP_WNDPROC, (LONG_PTR)file_dialog_subclass_proc);
+ SetWindowLongPtr(hParentWnd, GWLP_WNDPROC, reinterpret_cast<LONG_PTR>(file_dialog_subclass_proc));
// Add a button to the toolbar
pImpl->_toolbar_wnd = FindWindowEx(hParentWnd, NULL, "ToolbarWindow32", NULL);
pImpl->_show_preview_button_bitmap = LoadBitmap(
hInstance, MAKEINTRESOURCE(IDC_SHOW_PREVIEW));
- TBADDBITMAP tbAddBitmap = {NULL, (UINT_PTR)pImpl->_show_preview_button_bitmap};
+ TBADDBITMAP tbAddBitmap = {NULL, reinterpret_cast<UINT_PTR>(pImpl->_show_preview_button_bitmap)};
const int iBitmapIndex = SendMessage(pImpl->_toolbar_wnd,
TB_ADDBITMAP, 1, (LPARAM)&tbAddBitmap);