diff options
author | David Robillard <d@drobilla.net> | 2020-08-02 14:09:03 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 14:09:03 +0200 |
commit | 62f5c3124b991abe9b9423a4908ca076079d5327 (patch) | |
tree | 661304a2e5920c1c77f4ce61e4852cabdb250e5f /src/client/PortModel.cpp | |
parent | 019eeff6a7d051427ad62a288f350e66471a0462 (diff) | |
download | ingen-62f5c3124b991abe9b9423a4908ca076079d5327.tar.gz ingen-62f5c3124b991abe9b9423a4908ca076079d5327.tar.bz2 ingen-62f5c3124b991abe9b9423a4908ca076079d5327.zip |
Use auto with pointer casts to remove redundancy
Diffstat (limited to 'src/client/PortModel.cpp')
-rw-r--r-- | src/client/PortModel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/PortModel.cpp b/src/client/PortModel.cpp index b3562f77..fe9bef2c 100644 --- a/src/client/PortModel.cpp +++ b/src/client/PortModel.cpp @@ -70,7 +70,7 @@ PortModel::set(const SPtr<ObjectModel>& model) { ObjectModel::set(model); - SPtr<PortModel> port = std::dynamic_pointer_cast<PortModel>(model); + auto port = std::dynamic_pointer_cast<PortModel>(model); if (port) { _index = port->_index; _direction = port->_direction; |