mirror of https://github.com/PCSX2/pcsx2.git
USB: Fix function parameter should be passed by const reference warnings.
Codacy.
This commit is contained in:
parent
424158b28d
commit
0c056ba691
|
@ -267,7 +267,7 @@ namespace usb_eyetoy
|
||||||
return devList;
|
return devList;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int v4l_open(std::string selectedDevice)
|
static int v4l_open(const std::string& selectedDevice)
|
||||||
{
|
{
|
||||||
char dev_name[64];
|
char dev_name[64];
|
||||||
struct v4l2_capability cap;
|
struct v4l2_capability cap;
|
||||||
|
|
|
@ -123,7 +123,7 @@ namespace usb_eyetoy
|
||||||
return devList;
|
return devList;
|
||||||
}
|
}
|
||||||
|
|
||||||
int DirectShow::InitializeDevice(std::wstring selectedDevice)
|
int DirectShow::InitializeDevice(const std::wstring& selectedDevice)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Create the Capture Graph Builder.
|
// Create the Capture Graph Builder.
|
||||||
|
|
|
@ -92,7 +92,7 @@ namespace usb_eyetoy
|
||||||
void SetCallback(DShowVideoCaptureCallback cb) { callbackhandler->SetCallback(cb); }
|
void SetCallback(DShowVideoCaptureCallback cb) { callbackhandler->SetCallback(cb); }
|
||||||
bool Start();
|
bool Start();
|
||||||
void Stop();
|
void Stop();
|
||||||
int InitializeDevice(std::wstring selectedDevice);
|
int InitializeDevice(const std::wstring& selectedDevice);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wil::unique_couninitialize_call dshowCoInitialize;
|
wil::unique_couninitialize_call dshowCoInitialize;
|
||||||
|
|
Loading…
Reference in New Issue