Blob Blame History Raw
From 3297b7f7dc864aca4f0a1df822d6c657a7c67abd Mon Sep 17 00:00:00 2001
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
Date: Thu, 25 Apr 2019 16:16:56 +0100
Subject: [PATCH 6/9] v2.0.2 bbas-baio Update function arguments in declaration

---
 contrib/brl/bbas/baio/baio_unix.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/brl/bbas/baio/baio_unix.cxx b/contrib/brl/bbas/baio/baio_unix.cxx
index e8af7199f2..98fc110276 100644
--- a/contrib/brl/bbas/baio/baio_unix.cxx
+++ b/contrib/brl/bbas/baio/baio_unix.cxx
@@ -34,7 +34,7 @@ baio::~baio()
 }
 
 //: Opens and reads file asynchronously
-bool baio::read(std::string filename, char* buff, long BUFSIZE)
+bool baio::read(const std::string& filename, char* buff, long BUFSIZE)
 {
   // 1. call c open to get standard file handle
   int fhandle = open(filename.c_str(), O_RDONLY);
@@ -68,7 +68,7 @@ bool baio::read(std::string filename, char* buff, long BUFSIZE)
 }
 
 //: opens and writes file asynchronously
-bool baio::write(std::string filename, char* buff, long BUFSIZE)
+bool baio::write(const std::string& filename, char* buff, long BUFSIZE)
 {
   // 1. call c open to get standard file handle
   int fhandle = open(filename.c_str(), O_WRONLY | O_CREAT, 0666);
-- 
2.21.0