github-actions[bot] commented on code in PR #26483:
URL: https://github.com/apache/doris/pull/26483#discussion_r1384815248


##########
be/src/olap/wal_writer.cpp:
##########
@@ -25,7 +28,9 @@
 
 namespace doris {
 
-WalWriter::WalWriter(const std::string& file_name) : _file_name(file_name) {}
+WalWriter::WalWriter(const std::string& file_name,

Review Comment:
   warning: pass by value and use std::move [modernize-pass-by-value]
   
   be/src/olap/wal_writer.cpp:20:
   ```diff
   
   + #include <utility>
   ```
   
   ```suggestion
   WalWriter::WalWriter(std::string  file_name,
   ```
   
   be/src/olap/wal_writer.cpp:32:
   ```diff
   -         : _file_name(file_name), _disk_bytes(0), 
_all_wal_disk_bytes(all_wal_disk_bytes) {}
   +         : _file_name(std::move(file_name)std::string e_name), 
_disk_bytes(0), _all_wal_disk_bytes(all_wal_disk_bytes) {}
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to