[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1495
Date       : Sat Jul 22 13:27:56 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxOil/textfuns.cpp

Fixed build warnings


Diff:
Index: Trunk/XaraLX/wxOil/textfuns.cpp
===================================================================
--- Trunk/XaraLX/wxOil/textfuns.cpp	(revision 1494)
+++ Trunk/XaraLX/wxOil/textfuns.cpp	(revision 1495)
@@ -647,16 +647,16 @@
 
 	// get a lower case version of the char (if it changes it must have been upper)
 	WCHAR OldCharW = *pChar;
-	WCHAR LowerCharW;
-	if (camTolower(OldCharW) != OldCharW)
+	WCHAR LowerCharW = OldCharW;
+	if ((WCHAR)camTolower(OldCharW) != OldCharW)
 	{
 		OldCase = Upper;
 		LowerCharW = camTolower(OldCharW);
 	}
 
 	// get an upper case version of the char (if it changes it must have been lower)
-	WCHAR UpperCharW;
-	if (camToupper(OldCharW) != OldCharW)
+	WCHAR UpperCharW = OldCharW;
+	if ((WCHAR)camToupper(OldCharW) != OldCharW)
 	{
 		OldCase = Lower;
 		UpperCharW = camToupper(OldCharW);


Xara