From 73e6d3788d4e904b927b1185cb7a299160a0268e Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Thu, 6 Jul 2023 18:07:21 -0700 Subject: Remove PointerProperties::copyFrom Remove copyFrom in favor of default-generated operator=. Bug: 271455682 Test: m checkinput Change-Id: Ie00d027bcbf0a994e04e6b79a107c32077c3a3d8 --- services/inputflinger/NotifyArgs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'services/inputflinger/NotifyArgs.cpp') diff --git a/services/inputflinger/NotifyArgs.cpp b/services/inputflinger/NotifyArgs.cpp index 0fa47d1a7c..c34cd5346e 100644 --- a/services/inputflinger/NotifyArgs.cpp +++ b/services/inputflinger/NotifyArgs.cpp @@ -91,8 +91,8 @@ NotifyMotionArgs::NotifyMotionArgs( readTime(readTime), videoFrames(videoFrames) { for (uint32_t i = 0; i < pointerCount; i++) { - this->pointerProperties.push_back(pointerProperties[i]); - this->pointerCoords.push_back(pointerCoords[i]); + this->pointerProperties.emplace_back(pointerProperties[i]); + this->pointerCoords.emplace_back(pointerCoords[i]); } } -- cgit v1.2.3-59-g8ed1b