using reference parameters

This commit is contained in:
Uwe Rathmann 2022-03-24 08:45:06 +01:00
parent 74a09c8f7e
commit 5c62725cd1
2 changed files with 2 additions and 2 deletions

View File

@ -551,7 +551,7 @@ void QskWindow::setCustomRenderMode( const char* mode )
class RenderJob final : public QRunnable class RenderJob final : public QRunnable
{ {
public: public:
RenderJob( QQuickWindow* window, const QByteArray mode ) RenderJob( QQuickWindow* window, const QByteArray& mode )
: m_window( window ) : m_window( window )
, m_mode( mode ) , m_mode( mode )
{ {

View File

@ -116,7 +116,7 @@ namespace
private: private:
inline bool setValueAt( int pos, inline bool setValueAt( int pos,
const std::function< bool( Setting& ) > modify ) const std::function< bool( Setting& ) >& modify )
{ {
if ( pos < 0 ) if ( pos < 0 )
return false; return false;