Ignore:
Timestamp:
07/03/20 00:37:13 (4 years ago)
Author:
Maciej Komosinski
Message:

Increased SString and std::string compatibility: introduced length(), size(), and capacity(), and removed legacy methods that have std::string equivalents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/param/mutableparam.cpp

    r884 r973  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2019  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2020  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    3333int MutableParam::findGroup(const SString name, int ignoreprefix)
    3434{
    35         int skipprefix = grprefix.len() ? grprefix.len() + 2 : 0;
     35        int skipprefix = grprefix.length() ? grprefix.length() + 2 : 0;
    3636        for (int i = 0; i < groups.size(); i++)
    3737        {
     
    5757        {
    5858                tmp = grprefix;
    59                 if (tmp.len()) tmp += ": ";
     59                if (tmp.length()) tmp += ": ";
    6060                tmp += gname;
    6161        }
Note: See TracChangeset for help on using the changeset viewer.