]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxstring.C
removed a warning from screen and added CFLAGS in lyx.spec.in.
[lyx.git] / src / support / lyxstring.C
index 3cd13e4771213899c78e088d9354d27d0808d1f7..32ab71c6a8b3a39dbeef231cc845311abaecb929 100644 (file)
@@ -70,7 +70,7 @@ struct lyxstring::Srep {
        Srep * get_own_copy()
                {
                        if (ref == 1) return this;
-                       ref--;
+                       --ref;
                        return new Srep(sz, s);
                }
        
@@ -749,7 +749,7 @@ lyxstring & lyxstring::append(size_type n, value_type c)
        value_type * tmp = new value_type[n];
        memset(tmp, c, n);
        rep = rep->get_own_copy();
-       rep->assign(n, tmp);
+       rep->append(n, tmp);
        delete[] tmp;
        return *this;
 }