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

Remove _Ptr(_Const) typedefs #2847

Merged
merged 1 commit into from
Mar 20, 2019
Merged

Remove _Ptr(_Const) typedefs #2847

merged 1 commit into from
Mar 20, 2019

Commits on Mar 19, 2019

  1. Remove _Ptr(_Const) typedefs

    Removes these typedefs because pointers should be handled with care.
    Having them visually stand out in the code helps us avoid common pitfalls,
    such as accidentally using `Ptr` instead of `Obj`.
    
    This change has been automatically generated using the following command:
    
    ```bash
    find src \( -name '*.cpp' -o -name '*.hpp' \) -exec sed -i \
    '/typedef.*_Ptr[_;]/d;'\
    's/\([A-Za-z_]*\)_Ptr_Const/const \1*/g;'\
    's/\([A-Za-z_]*\)_Ptr/\1*/g;'\
    's/\([a-z]\)##\*/\1*/g' '{}' \+
    ```
    
    Fixes sass#2785
    glebm committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    b10f7a2 View commit details
    Browse the repository at this point in the history