X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetRef.cpp;h=bd6b2ecfec204952e81dd455d152a3bd4bad227a;hb=d044d6afa7192b2119784e1415e71dad644bc335;hp=5ac6b469665bbc0bfd4bf734d8178ebe7e136ee9;hpb=1f45e6527a9ef95d4c3f6b1b38ae2a1263347945;p=lyx.git diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp index 5ac6b46966..bd6b2ecfec 100644 --- a/src/insets/InsetRef.cpp +++ b/src/insets/InsetRef.cpp @@ -140,8 +140,8 @@ docstring InsetRef::getEscapedLabel(OutputParams const & rp) const void InsetRef::latex(otexstream & os, OutputParams const & rp) const { - string const cmd = getCmdName(); - docstring const data = getEscapedLabel(rp); + string const & cmd = getCmdName(); + docstring const & data = getEscapedLabel(rp); if (rp.inulemcmd > 0) os << "\\mbox{";