mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
undo: don't use moved-from string
Found by Coverity. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1dade48aa6
commit
5c6ca2c1ce
1 changed files with 2 additions and 2 deletions
|
@ -89,9 +89,9 @@ void AddEventSetpointChange::redoit()
|
|||
std::swap(d->get_dc(dcNr)->divemode, divemode);
|
||||
}
|
||||
|
||||
RenameEvent::RenameEvent(struct dive *d, int dcNr, int idx, const std::string name) : EventBase(d, dcNr),
|
||||
RenameEvent::RenameEvent(struct dive *d, int dcNr, int idx, const std::string nameIn) : EventBase(d, dcNr),
|
||||
idx(idx),
|
||||
name(std::move(name))
|
||||
name(std::move(nameIn))
|
||||
{
|
||||
setText(Command::Base::tr("Rename bookmark to %1").arg(name.c_str()));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue