]> git.lyx.org Git - features.git/commitdiff
Fix possible bug spotted by cppcheck
authorJean-Marc <lasgouttes@lyx.org>
Sat, 5 Jul 2014 17:12:09 +0000 (19:12 +0200)
committerJean-Marc <lasgouttes@lyx.org>
Sat, 5 Jul 2014 17:12:09 +0000 (19:12 +0200)
I am not sure what this locking is really about, but the new code seems to be the right thing to do.

src/mathed/MathMacro.cpp

index f39112c11cba21abd885010e3c4257bf199f5d38..a6d92d9f8894c4187b9399c548960fcf5c9e40e3 100644 (file)
@@ -332,7 +332,7 @@ void MathMacro::updateRepresentation(Cursor * cur, MacroContext const & mc,
        if (isUpdating_)
                return;
 
-       UpdateLocker(*this);
+       UpdateLocker locker(*this);
 
        // known macro?
        if (macro_ == 0)