X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstrings%2Fformat.cpp;fp=source%2Fstrings%2Fformat.cpp;h=42926e158d593a8a5d84ffb88dfcdddce26a80d5;hp=d2065e91cad058cd74f63fa5a34dcec45f258cde;hb=d15b96b498d7cad51a0cb1dd949f70a04af246e9;hpb=41363aed34382386f915f17c1a961750b4fdcb14 diff --git a/source/strings/format.cpp b/source/strings/format.cpp index d2065e9..42926e1 100644 --- a/source/strings/format.cpp +++ b/source/strings/format.cpp @@ -19,6 +19,9 @@ Formatter::Formatter(const Formatter &other): Formatter &Formatter::operator=(const Formatter &other) { + if(&other==this) + return *this; + fmt = other.fmt; pos = fmt.begin()+(other.pos-other.fmt.begin()); result = other.result;