diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-07-13 11:53:13 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-13 14:02:17 +0200 |
commit | 9f41a8f30d22a1c7ac678ecdbdad5b60b1f334ed (patch) | |
tree | 9f3e376cfb802669f97b2d5c0034b99540f68dfd /shell | |
parent | 2cf6778842d259d4e6e1a1f0e4c6c2ceab874eee (diff) |
warning C4267: conversion from 'size_t' to 'int'
Change-Id: Id495b96f6f496f4ae16d9c9a3697f94c7b3f305c
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx b/shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx index 5c0cd506e55f..583d480aac41 100644 --- a/shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx +++ b/shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx @@ -149,7 +149,7 @@ void list_view_builder::insert_item(const std::wstring& title, const std::wstrin lvi.iSubItem = 0; lvi.mask = LVIF_TEXT; lvi.state = 0; - lvi.cchTextMax = title.size() + 1; + lvi.cchTextMax = static_cast<int>(title.size() + 1); lvi.stateMask = 0; lvi.pszText = const_cast<wchar_t*>(title.c_str()); @@ -211,7 +211,7 @@ void winxp_list_view_builder::insert_group(const std::wstring& name) lvg.cbSize = sizeof(lvg); lvg.mask = LVGF_HEADER | LVGF_STATE | LVGF_GROUPID; lvg.pszHeader = const_cast<wchar_t*>(name.c_str()); - lvg.cchHeader = name.size() + 1; + lvg.cchHeader = static_cast<int>(name.size() + 1); lvg.iGroupId = ++group_count_; lvg.state = LVGS_NORMAL; lvg.uAlign = LVGA_HEADER_CENTER; |