From: Jean-Marc Date: Sat, 5 Jul 2014 17:12:09 +0000 (+0200) Subject: Fix possible bug spotted by cppcheck X-Git-Tag: 2.2.0alpha1~1781 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1cdbb94ff53ba2e73d60aecd53c7b9b44b042701;p=features.git Fix possible bug spotted by cppcheck I am not sure what this locking is really about, but the new code seems to be the right thing to do. --- diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index f39112c11c..a6d92d9f88 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -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)