=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: oleaut32/tests: Constify some character strings.

Alexandre Julliard julliard at winehq.org
Fri Dec 27 13:31:10 CST 2013


Module: wine
Branch: master
Commit: dfe6a9b20012ba03f8c0917713340e795a0cc02e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dfe6a9b20012ba03f8c0917713340e795a0cc02e

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Thu Dec 26 22:49:31 2013 +0100

oleaut32/tests: Constify some character strings.

---

 dlls/oleaut32/tests/tmarshal.c |    2 +-
 dlls/oleaut32/tests/typelib.c  |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c
index d493327..1a3effe 100644
--- a/dlls/oleaut32/tests/tmarshal.c
+++ b/dlls/oleaut32/tests/tmarshal.c
@@ -1195,7 +1195,7 @@ static void test_typelibmarshal(void)
 {
     static const WCHAR szCat[] = { 'C','a','t',0 };
     static const WCHAR szTestTest[] = { 'T','e','s','t','T','e','s','t',0 };
-    static WCHAR szSuperman[] = { 'S','u','p','e','r','m','a','n',0 };
+    static const WCHAR szSuperman[] = { 'S','u','p','e','r','m','a','n',0 };
     HRESULT hr;
     IKindaEnumWidget *pKEW = KindaEnumWidget_Create();
     IWidget *pWidget;
diff --git a/dlls/oleaut32/tests/typelib.c b/dlls/oleaut32/tests/typelib.c
index 80e3b99..20e53fb 100644
--- a/dlls/oleaut32/tests/typelib.c
+++ b/dlls/oleaut32/tests/typelib.c
@@ -1529,8 +1529,8 @@ static void test_CreateTypeLib(SYSKIND sys) {
     static OLECHAR interface3W[] = {'i','n','t','e','r','f','a','c','e','3',0};
     static OLECHAR dualW[] = {'d','u','a','l',0};
     static OLECHAR coclassW[] = {'c','o','c','l','a','s','s',0};
-    static WCHAR defaultW[] = {'d','e','f','a','u','l','t',0x3213,0};
-    static WCHAR defaultQW[] = {'d','e','f','a','u','l','t','?',0};
+    static const WCHAR defaultW[] = {'d','e','f','a','u','l','t',0x3213,0};
+    static const WCHAR defaultQW[] = {'d','e','f','a','u','l','t','?',0};
     static OLECHAR func1W[] = {'f','u','n','c','1',0};
     static OLECHAR func2W[] = {'f','u','n','c','2',0};
     static OLECHAR prop1W[] = {'P','r','o','p','1',0};




More information about the wine-cvs mailing list