• Stephan Seitz's avatar
    Fix warnings about creating a copy in range loops [-Wrange-loop-construct] · 59de1b1d
    Stephan Seitz authored
    ```
    ./src/backends/scilab/scilabexpression.cpp:89:24: warning: loop variable 'line' creates a copy from type 'const QString' [-Wrange-loop-construct]
        for (const QString line : lines)
                           ^
    ../src/backends/scilab/scilabexpression.cpp:89:10: note: use reference type 'const QString &' to prevent copying
        for (const QString line : lines)
             ^~~~~~~~~~~~~~~~~~~~
                           &
    1 warning generated.
    ```
    59de1b1d
defaultvariablemodel.cpp 9.3 KB