using reference parameters
This commit is contained in:
parent
74a09c8f7e
commit
5c62725cd1
@ -551,7 +551,7 @@ void QskWindow::setCustomRenderMode( const char* mode )
|
||||
class RenderJob final : public QRunnable
|
||||
{
|
||||
public:
|
||||
RenderJob( QQuickWindow* window, const QByteArray mode )
|
||||
RenderJob( QQuickWindow* window, const QByteArray& mode )
|
||||
: m_window( window )
|
||||
, m_mode( mode )
|
||||
{
|
||||
|
@ -116,7 +116,7 @@ namespace
|
||||
|
||||
private:
|
||||
inline bool setValueAt( int pos,
|
||||
const std::function< bool( Setting& ) > modify )
|
||||
const std::function< bool( Setting& ) >& modify )
|
||||
{
|
||||
if ( pos < 0 )
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user