Skip to content

Commit be1ad64

Browse files
committed
Add some missing const declarations
1 parent fec15a1 commit be1ad64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Win32.xs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ wstr_to_sv(pTHX_ WCHAR *wstr)
203203
* characters for the characters not in the ANSI codepage.
204204
*/
205205
SV*
206-
get_unicode_env(pTHX_ WCHAR *name)
206+
get_unicode_env(pTHX_ const WCHAR *name)
207207
{
208208
SV *sv = NULL;
209209
void *env;
@@ -699,7 +699,7 @@ XS(w32_MsgBox)
699699
Safefree(title);
700700
}
701701
else {
702-
char *title = "Perl";
702+
const char *title = "Perl";
703703
char *msg = SvPV_nolen(ST(0));
704704
if (items > 2)
705705
title = SvPV_nolen(ST(2));
@@ -906,7 +906,7 @@ XS(w32_GetFolderPath)
906906
SV *sv;
907907
HKEY hkey;
908908
HKEY root = HKEY_CURRENT_USER;
909-
WCHAR *name = NULL;
909+
const WCHAR *name = NULL;
910910

911911
switch (folder) {
912912
case CSIDL_ADMINTOOLS: name = L"Administrative Tools"; break;

0 commit comments

Comments
 (0)