]> git.lyx.org Git - lyx.git/blobdiff - src/factory.cpp
Fixup 572b06d6: reduce cache size for breakString
[lyx.git] / src / factory.cpp
index dd72fe33d15359487ad22be478ebd9292331463d..6f17797ada95b88c45961f23f7a6b9ca5cf212ad 100644 (file)
@@ -215,7 +215,7 @@ Inset * createInsetHelper(Buffer * buf, FuncRequest const & cmd)
                }
 
                case LFUN_INDEX_INSERT: {
-                       docstring arg = cmd.argument();
+                       docstring const & arg = cmd.argument();
                        return new InsetIndex(buf, InsetIndexParams(arg));
                }
 
@@ -341,7 +341,7 @@ Inset * createInsetHelper(Buffer * buf, FuncRequest const & cmd)
                        }
 
                        case INDEX_CODE: {
-                               docstring arg = cmd.argument();
+                               docstring const & arg = cmd.argument();
                                return new InsetIndex(buf, InsetIndexParams(arg));
                        }