Fix the build error using gcc 13 15/295415/2
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 7 Jul 2023 00:18:49 +0000 (09:18 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Fri, 7 Jul 2023 00:26:49 +0000 (00:26 +0000)
- Remove unnecessary std::move call

Change-Id: Ib578449611db3d248e0d7c7b735d7d3f1288dfe0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/sql_connection.h

index 722a312fff8c47fc46c1f52905986e810cb69e10..4a74b62851970adb11cf54369ceca7b0d2085e1a 100644 (file)
@@ -38,7 +38,7 @@ class SQLConnection {
   }
 
   virtual std::unique_lock<const SQLTransaction> GetTransactionGuard() {
-    return std::move(std::unique_lock<const SQLTransaction>(transaction_));
+    return std::unique_lock<const SQLTransaction>(transaction_);
   }
 
  protected: