Changeset b864b43 in git


Ignore:
Timestamp:
17/01/14 07:13:11 (6 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
9185847
Parents:
f8c981b
Message:

src/aboutdlg.cc: Use string::erase() rather than assigning the
result of string::substr().

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rf8c981b rb864b43  
     1Fri Jan 17 07:12:47 GMT 2014  Olly Betts <olly@survex.com>
     2
     3        * src/aboutdlg.cc: Use string::erase() rather than assigning the
     4          result of string::substr().
     5
    16Thu Jan 16 03:58:18 GMT 2014  Olly Betts <olly@survex.com>
    27
  • src/aboutdlg.cc

    rf8c981b rb864b43  
    55//
    66//  Copyright (C) 2001-2003 Mark R. Shinwell.
    7 //  Copyright (C) 2001,2002,2003,2004,2005,2006,2010 Olly Betts
     7//  Copyright (C) 2001,2002,2003,2004,2005,2006,2010,2014 Olly Betts
    88//
    99//  This program is free software; you can redistribute it and/or modify
     
    117117        licence_str += l.substr(0, a);
    118118        if (a < l.length() && l[a] == ' ') ++a;
    119         l = l.substr(a);
     119        l.erase(0, a);
    120120    } while (!l.empty());
    121121
Note: See TracChangeset for help on using the changeset viewer.