X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetcommand.C;h=a5d2f391c5d230700939757af3c76fd4282d4bdd;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=cb40f395ea2c273ce5f86dce0795a15219caf33b;hpb=2470d9297d3f2c303f555c8f235d022b19396679;p=lyx.git diff --git a/src/insets/insetcommand.C b/src/insets/insetcommand.C index cb40f395ea..a5d2f391c5 100644 --- a/src/insets/insetcommand.C +++ b/src/insets/insetcommand.C @@ -27,9 +27,9 @@ InsetCommandParams::InsetCommandParams() {} -InsetCommandParams::InsetCommandParams( string const & n, +InsetCommandParams::InsetCommandParams(string const & n, string const & c, - string const & o ) + string const & o) : cmdname(n), contents(c), options(o) {} @@ -40,7 +40,7 @@ string const InsetCommandParams::getAsString() const } -void InsetCommandParams::setFromString( string const & b ) +void InsetCommandParams::setFromString(string const & b) { string::size_type idx = b.find("|++|"); if (idx == string::npos) { @@ -126,9 +126,9 @@ void InsetCommandParams::scanCommand(string const & cmd) } // Don't mess with this. - if (!tcmdname.empty()) setCmdName( tcmdname ); - if (!toptions.empty()) setOptions( toptions ); - if (!tcontents.empty()) setContents( tcontents ); + if (!tcmdname.empty()) setCmdName(tcmdname); + if (!toptions.empty()) setOptions(toptions); + if (!tcontents.empty()) setContents(tcontents); if (lyxerr.debugging(Debug::PARSER)) lyxerr << "Command <" << cmd @@ -181,15 +181,15 @@ string const InsetCommandParams::getCommand() const InsetCommand::InsetCommand(InsetCommandParams const & p, bool) - : p_( p.getCmdName(), p.getContents(), p.getOptions() ) + : p_(p.getCmdName(), p.getContents(), p.getOptions()) {} -void InsetCommand::setParams(InsetCommandParams const & p ) +void InsetCommand::setParams(InsetCommandParams const & p) { - p_.setCmdName( p.getCmdName() ); - p_.setContents( p.getContents() ); - p_.setOptions( p.getOptions() ); + p_.setCmdName(p.getCmdName()); + p_.setContents(p.getContents()); + p_.setOptions(p.getOptions()); }