Remove r-value return type function
authorIlho Kim <ilho159.kim@samsung.com>
Fri, 12 Mar 2021 06:00:27 +0000 (15:00 +0900)
committer김일호/Tizen Platform Lab(SR)/Engineer/삼성전자 <ilho159.kim@samsung.com>
Fri, 12 Mar 2021 09:32:14 +0000 (18:32 +0900)
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/common/database/pkg_set_db_handler.cc
src/common/database/pkg_set_db_handler.hh
src/common/database/query_handler.cc
src/common/database/query_handler.hh

index d7cb78e..3909f32 100644 (file)
@@ -34,7 +34,7 @@ void PkgSetDBHandler::SetPkgInfo(package_x* package) { package_ = package; }
 void PkgSetDBHandler::SetPkgID(std::string pkgid) { pkgid = std::move(pkgid); }
 void PkgSetDBHandler::SetWriteType(WriteType write_type) { write_type_ = write_type; }
 
-std::vector<std::vector<std::string>>&& PkgSetDBHandler::GetResult() {
+std::vector<std::vector<std::string>> PkgSetDBHandler::GetResult() {
   return std::move(result_);
 }
 
index b83642f..688a658 100644 (file)
@@ -49,7 +49,7 @@ class EXPORT_API PkgSetDBHandler : public AbstractDBHandler{
   void SetPkgID(std::string pkgid);
   void SetWriteType(WriteType write_type);
   int Execute() override;
-  std::vector<std::vector<std::string>>&& GetResult();
+  std::vector<std::vector<std::string>> GetResult();
 
  private:
   std::string pkgid_;
index ea669ad..da38fcd 100644 (file)
@@ -37,7 +37,7 @@ std::string QueryHandler::GetString() { return std::string(); }
 int QueryHandler::GetInt() { return 0; }
 int QueryHandler::GetRecordCount() { return 0; }
 
-std::vector<std::vector<std::string>>&& QueryHandler::GetResult() {
+std::vector<std::vector<std::string>> QueryHandler::GetResult() {
   return std::move(result_);
 }
 
index c655a22..c9f0db7 100644 (file)
@@ -44,7 +44,7 @@ class EXPORT_API QueryHandler : public AbstractDBHandler{
   int GetInt();
   int GetRecordCount();
   int Execute() override;
-  std::vector<std::vector<std::string>>&& GetResult();
+  std::vector<std::vector<std::string>> GetResult();
 
  private:
   uid_t uid_;