[PATCH] comdlg32: Turn several variables into static constants
Alex Henrie
alexhenrie24 at gmail.com
Mon Dec 3 22:42:49 CST 2018
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/comdlg32/printdlg.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c
index 429903b84d..69e9aeb08d 100644
--- a/dlls/comdlg32/printdlg.c
+++ b/dlls/comdlg32/printdlg.c
@@ -2618,9 +2618,9 @@ static WCHAR get_decimal_sep(void)
static void size2str(const pagesetup_data *data, DWORD size, LPWSTR strout)
{
- WCHAR integer_fmt[] = {'%','d',0};
- WCHAR hundredths_fmt[] = {'%','d','%','c','%','0','2','d',0};
- WCHAR thousandths_fmt[] = {'%','d','%','c','%','0','3','d',0};
+ static const WCHAR integer_fmt[] = {'%','d',0};
+ static const WCHAR hundredths_fmt[] = {'%','d','%','c','%','0','2','d',0};
+ static const WCHAR thousandths_fmt[] = {'%','d','%','c','%','0','3','d',0};
/* FIXME use LOCALE_SDECIMAL when the edit parsing code can cope */
--
2.19.2
More information about the wine-devel
mailing list