Update of /cvsroot/mahogany/M/src/wx/generic
In directory sc8-pr-cvs1:/tmp/cvs-serv6042/src/wx/generic

Modified Files:
        persctrl.cpp 
Log Message:
unicode fixes

Index: persctrl.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/wx/generic/persctrl.cpp,v
retrieving revision 1.87
retrieving revision 1.88
diff -b -u -2 -r1.87 -r1.88
--- persctrl.cpp        11 Oct 2003 23:13:47 -0000      1.87
+++ persctrl.cpp        12 Oct 2003 22:03:37 -0000      1.88
@@ -175,5 +175,5 @@
 
 // don't allocate memory for static objects
-wxString wxPControls::ms_pathPrefix = "";
+wxString wxPControls::ms_pathPrefix = _T("");
 
 // ----------------------------------------------------------------------------
@@ -482,5 +482,5 @@
     }
 
-    m_persist = new wxPHelper(realConfigPath, "", config);
+    m_persist = new wxPHelper(realConfigPath, _T(""), config);
     m_countSaveMax = ms_countSaveDefault;
 
@@ -505,5 +505,5 @@
 {
    m_persist->SetConfig(config);
-   m_persist->SetPath(configPath, "");
+   m_persist->SetPath(configPath, _T(""));
 
    if ( wxComboBox::Create(parent, id, value, pos, size, style) ) {
@@ -526,5 +526,5 @@
         wxString text = GetValue();
         if ( !text.empty() ) {
-            config->Write("0", text);
+            config->Write(_T("0"), text);
         }
 
@@ -543,5 +543,5 @@
             value = GetString(n);
             if ( value != text ) {
-                key.Printf("%lu", (unsigned long)numKey++);
+                key.Printf(_T("%lu"), (unsigned long)numKey++);
                 config->Write(key, value);
             }
@@ -561,5 +561,5 @@
         wxString key, val, text;
         for ( size_t n = 0; ; n++ ) {
-            key.Printf("%lu", (unsigned long)n);
+            key.Printf(_T("%lu"), (unsigned long)n);
             if ( !config->HasEntry(key) )
                 break;
@@ -586,5 +586,5 @@
 void wxPTextEntry::SetConfigPath(const wxString& path)
 {
-    m_persist->SetPath(path, "");
+    m_persist->SetPath(path, _T(""));
 }
 
@@ -1951,5 +1951,5 @@
     if ( configPath[0u] != '/' ) {
         // prepend some common prefix
-        ourPath = "FilePrompts/";
+        ourPath = _T("FilePrompts/");
     }
     //else: absolute path - use as is
@@ -1957,7 +1957,7 @@
     ourPath += configPath.BeforeLast('/');
     configValueFile = configPath.AfterLast('/');
-    configValuePath << configValueFile << "Path";
+    configValuePath << configValueFile << _T("Path");
 
-    wxPHelper persist(ourPath, "", config);
+    wxPHelper persist(ourPath, _T(""), config);
 
     // if config was NULL, wxPHelper already has the global one



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to