X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTocBackend.h;h=026f4f879bf749efe9ec718b1b0f4b397e6a0f88;hb=0762b52334d8a455a8c2ed08f5cc6ce6d67a35d9;hp=0e123ee5f033977201c1f795735eeb7a0a2417b9;hpb=c4658f046fc929d557331040ca592c7785378ba1;p=lyx.git diff --git a/src/TocBackend.h b/src/TocBackend.h index 0e123ee5f0..026f4f879b 100644 --- a/src/TocBackend.h +++ b/src/TocBackend.h @@ -61,7 +61,7 @@ public: int depth, docstring const & s, bool output_active, - FuncRequest action = FuncRequest(LFUN_UNKNOWN_ACTION) + FuncRequest const & action = FuncRequest(LFUN_UNKNOWN_ACTION) ); /// DocIterator const & dit() const { return dit_; } @@ -74,7 +74,7 @@ public: /// bool isOutput() const { return output_; } /// - void setAction(FuncRequest a) { action_ = a; } + void setAction(FuncRequest const & a) { action_ = a; } /// custom action, or the default one (paragraph-goto) if not customised FuncRequest action() const; @@ -149,7 +149,7 @@ private: /// TocList tocs_; /// - std::map> builders_; + std::map> builders_; /// Stores localised outliner names from this buffer and its children std::map outliner_names_; ///