USB: Fix function parameter should be passed by const reference warnings.

Codacy.
This commit is contained in:
lightningterror 2023-08-07 22:19:31 +02:00
parent 424158b28d
commit 0c056ba691
3 changed files with 3 additions and 3 deletions

View File

@ -267,7 +267,7 @@ namespace usb_eyetoy
return devList;
}
static int v4l_open(std::string selectedDevice)
static int v4l_open(const std::string& selectedDevice)
{
char dev_name[64];
struct v4l2_capability cap;

View File

@ -123,7 +123,7 @@ namespace usb_eyetoy
return devList;
}
int DirectShow::InitializeDevice(std::wstring selectedDevice)
int DirectShow::InitializeDevice(const std::wstring& selectedDevice)
{
// Create the Capture Graph Builder.

View File

@ -92,7 +92,7 @@ namespace usb_eyetoy
void SetCallback(DShowVideoCaptureCallback cb) { callbackhandler->SetCallback(cb); }
bool Start();
void Stop();
int InitializeDevice(std::wstring selectedDevice);
int InitializeDevice(const std::wstring& selectedDevice);
private:
wil::unique_couninitialize_call dshowCoInitialize;