Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EditTextView: Fix redundant initialization #380

Merged

Commits on Jul 4, 2020

  1. EditTextView: Fix redundant initialization

    無意味な変数初期化を行っているとcppcheckの指摘されたため修正します。
    
    cppcheckのレポート
    ```
    src/skeleton/editview.cpp:571:24: style: Redundant initialization for 'nlpos'. The initialized value is overwritten before it is read. [redundantInitialization]
            while( ( nlpos = text.rfind( "\n", rpos ) ) != std::string::npos )
                           ^
    src/skeleton/editview.cpp:568:22: note: nlpos is initialized
            size_t nlpos = std::string::npos;
                         ^
    src/skeleton/editview.cpp:571:24: note: nlpos is overwritten
            while( ( nlpos = text.rfind( "\n", rpos ) ) != std::string::npos )
                           ^
    ```
    ma8ma committed Jul 4, 2020
    Configuration menu
    Copy the full SHA
    beac08f View commit details
    Browse the repository at this point in the history