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

Core: Add const qualifier to function parameters #375

Merged
merged 1 commit into from
Jul 1, 2020

Commits on Jul 1, 2020

  1. Core: Add const qualifier to function parameters

    関数の引数にconst修飾子を付けることができるとcppcheckに指摘されたため
    修正します。
    
    cppcheckのレポート
    ```
    src/core.cpp:1387:129: performance: Parameter 'url' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
    static inline void toggle_sidebar_action( Glib::RefPtr< Gtk::ActionGroup >& group, const std::string& action, const std::string url )
                                                                                                                                    ^
    ```
    ma8ma committed Jul 1, 2020
    Configuration menu
    Copy the full SHA
    0df01d4 View commit details
    Browse the repository at this point in the history