diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-01 15:34:26 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-01 15:34:26 +0300 |
commit | 309a2f9fbd82f5acdcd969dac089b06aa5ad86a6 (patch) | |
tree | 58f918a2786a1b2d4715a9535cf728edca35c1f0 /um/service/include/libservice/device.hpp | |
parent | README updates (diff) | |
download | windows7-drivers-309a2f9fbd82f5acdcd969dac089b06aa5ad86a6.tar.gz windows7-drivers-309a2f9fbd82f5acdcd969dac089b06aa5ad86a6.zip |
service: code style
Diffstat (limited to 'um/service/include/libservice/device.hpp')
-rw-r--r-- | um/service/include/libservice/device.hpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/um/service/include/libservice/device.hpp b/um/service/include/libservice/device.hpp index ac292c8..f61c59a 100644 --- a/um/service/include/libservice/device.hpp +++ b/um/service/include/libservice/device.hpp @@ -63,13 +63,19 @@ namespace libservice Device(const Device&) = delete; }; - void swap(Device&, Device&) LIBSERVICE_NOEXCEPT; + inline void swap(Device& a, Device& b) LIBSERVICE_NOEXCEPT + { + a.swap(b); + } } namespace std { template <> - void swap<libservice::Device>( - libservice::Device&, - libservice::Device&) LIBSERVICE_NOEXCEPT; + inline void swap<libservice::Device>( + libservice::Device& a, + libservice::Device& b) LIBSERVICE_NOEXCEPT + { + a.swap(b); + } } |