forked from Mirrors/wine-wine
comdlg32: Constify some variables.
parent
7db8ecb611
commit
764974e59d
|
@ -3297,7 +3297,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
|
||||||
* Although shell32 is already linked the behaviour of exported StrRetToStrN
|
* Although shell32 is already linked the behaviour of exported StrRetToStrN
|
||||||
* is dependent on whether emulated OS is unicode or not.
|
* is dependent on whether emulated OS is unicode or not.
|
||||||
*/
|
*/
|
||||||
static HRESULT COMDLG32_StrRetToStrNW (LPWSTR dest, DWORD len, LPSTRRET src, LPITEMIDLIST pidl)
|
static HRESULT COMDLG32_StrRetToStrNW (LPWSTR dest, DWORD len, LPSTRRET src, const ITEMIDLIST *pidl)
|
||||||
{
|
{
|
||||||
switch (src->uType)
|
switch (src->uType)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2364,7 +2364,7 @@ static inline BOOL is_metric(const pagesetup_data *data)
|
||||||
return pagesetup_get_flags(data) & PSD_INHUNDREDTHSOFMILLIMETERS;
|
return pagesetup_get_flags(data) & PSD_INHUNDREDTHSOFMILLIMETERS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline LONG tenths_mm_to_size(pagesetup_data *data, LONG size)
|
static inline LONG tenths_mm_to_size(const pagesetup_data *data, LONG size)
|
||||||
{
|
{
|
||||||
if (is_metric(data))
|
if (is_metric(data))
|
||||||
return 10 * size;
|
return 10 * size;
|
||||||
|
@ -2372,7 +2372,7 @@ static inline LONG tenths_mm_to_size(pagesetup_data *data, LONG size)
|
||||||
return 10 * size * 100 / 254;
|
return 10 * size * 100 / 254;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline LONG thousandths_inch_to_size(pagesetup_data *data, LONG size)
|
static inline LONG thousandths_inch_to_size(const pagesetup_data *data, LONG size)
|
||||||
{
|
{
|
||||||
if (is_metric(data))
|
if (is_metric(data))
|
||||||
return size * 254 / 100;
|
return size * 254 / 100;
|
||||||
|
@ -2537,7 +2537,7 @@ typedef enum
|
||||||
} devnames_name;
|
} devnames_name;
|
||||||
|
|
||||||
|
|
||||||
static inline WORD get_devname_offset(DEVNAMES *dn, devnames_name which)
|
static inline WORD get_devname_offset(const DEVNAMES *dn, devnames_name which)
|
||||||
{
|
{
|
||||||
switch(which)
|
switch(which)
|
||||||
{
|
{
|
||||||
|
@ -3010,7 +3010,7 @@ static void update_margin_edits(HWND hDlg, const pagesetup_data *data, WORD id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void margin_edit_notification(HWND hDlg, pagesetup_data *data, WORD msg, WORD id)
|
static void margin_edit_notification(HWND hDlg, const pagesetup_data *data, WORD msg, WORD id)
|
||||||
{
|
{
|
||||||
switch (msg)
|
switch (msg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue