Changeset 15322f2 in git


Ignore:
Timestamp:
04/06/10 13:43:04 (9 years ago)
Author:
Olly Betts <olly@…>
Branches:
add-show-splays, line_contents, master, stereo, svn/github/master, svn/origin/master, svn/survex-1_1, svn/tags/1.1.14, svn/tags/1.1.15, svn/tags/1.1.16, svn/tags/1.2.0, svn/tags/1.2.1, svn/tags/1.2.2, svn/tags/1.2.3, svn/tags/1.2.4, svn/tags/1.2.5, svn/tags/v1_1_13, svn/trunk, travis-osx
Children:
a5e8ada
Parents:
b1876d3
Message:

src/cavernlog.cc: Add missing wxT() to string and character
constants only used in WXMSW build.

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@3383 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rb1876d3 r15322f2  
     1Fri Jun 04 12:41:59 GMT 2010  Olly Betts <olly@survex.com>
     2
     3        * src/cavernlog.cc: Add missing wxT() to string and character
     4          constants only used in __WXMSW__ build.
     5
    16Fri Jun 04 12:19:18 GMT 2010  Olly Betts <olly@survex.com>
    27
  • src/cavernlog.cc

    rb1876d3 r15322f2  
    4545    bool needs_quotes = false;
    4646    while (p < s.size()) {
    47         if (p == '"') {
    48             s.insert(p, '\\');
     47        if (s[p] == wxT('"')) {
     48            s.insert(p, wxT('\\'));
    4949            ++p;
    5050            needs_quotes = true;
     
    5353    }
    5454    if (needs_quotes) {
    55         s.insert(0, '"');
    56         s += '"';
     55        s.insert(0, wxT('"'));
     56        s += wxT('"');
    5757    }
    5858#else
     
    170170    char *cavern = use_path(msg_exepth(), "cavern");
    171171#ifdef __WXMSW__
    172     SetEnvironmentVariable("SURVEX_UTF8", "1");
     172    SetEnvironmentVariable(wxT("SURVEX_UTF8"), wxT("1"));
    173173#else
    174174    setenv("SURVEX_UTF8", "1", 1);
Note: See TracChangeset for help on using the changeset viewer.