summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-12-28 14:30:51 +0100
committerJulien Nabet <serval2412@yahoo.fr>2023-12-28 18:31:11 +0100
commitb33c45422801da708716b1157a7559910b577b5a (patch)
tree4837619448b0c0f8b53b0ed85e9839876c817a4e /svtools
parentf012065d14f8dc768b1badceef488336751f4a45 (diff)
Use emplace_back instead of push_back (svtools)
Change-Id: Ia70b71062959a58ad51ba4d2a9261ff4e0ce93d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161382 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/uno/framestatuslistener.cxx2
-rw-r--r--svtools/source/uno/statusbarcontroller.cxx2
-rw-r--r--svtools/source/uno/toolboxcontroller.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/uno/framestatuslistener.cxx b/svtools/source/uno/framestatuslistener.cxx
index 166433dff1b9..aa82e5880efe 100644
--- a/svtools/source/uno/framestatuslistener.cxx
+++ b/svtools/source/uno/framestatuslistener.cxx
@@ -241,7 +241,7 @@ void FrameStatusListener::bindListener()
}
listener.second = xDispatch;
- aDispatchVector.push_back( Listener( std::move(aTargetURL), xDispatch ) );
+ aDispatchVector.emplace_back(std::move(aTargetURL), xDispatch);
}
}
}
diff --git a/svtools/source/uno/statusbarcontroller.cxx b/svtools/source/uno/statusbarcontroller.cxx
index 7ab3a2e29c40..5baa311e9a4a 100644
--- a/svtools/source/uno/statusbarcontroller.cxx
+++ b/svtools/source/uno/statusbarcontroller.cxx
@@ -442,7 +442,7 @@ void StatusbarController::bindListener()
}
listener.second = xDispatch;
- aDispatchVector.push_back( Listener( std::move(aTargetURL), xDispatch ) );
+ aDispatchVector.emplace_back(std::move(aTargetURL), xDispatch);
}
}
}
diff --git a/svtools/source/uno/toolboxcontroller.cxx b/svtools/source/uno/toolboxcontroller.cxx
index 90f44c1d5e4b..f1f97fd88c52 100644
--- a/svtools/source/uno/toolboxcontroller.cxx
+++ b/svtools/source/uno/toolboxcontroller.cxx
@@ -541,7 +541,7 @@ void ToolboxController::bindListener()
listener.second = xDispatch;
- aDispatchVector.push_back( Listener( aTargetURL, xDispatch ) );
+ aDispatchVector.emplace_back(aTargetURL, xDispatch);
}
}
}