Skip to content

Commit f2e0163

Browse files
committed
Fix formatting
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 0f49fb5 commit f2e0163

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

sycl/include/sycl/detail/optional.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,24 +75,23 @@ template <typename T> class optional {
7575
return *this;
7676
}
7777

78-
optional &operator=(T &&Value){
78+
optional &operator=(T &&Value) {
7979
if (has_value())
8080
reinterpret_cast<T *>(Storage)->~T();
8181
ContainsValue = true;
8282
new (Storage) T(std::move(Value));
8383
return *this;
8484
}
8585

86-
optional &operator=(const T &Value){
86+
optional &operator=(const T &Value) {
8787
if (has_value())
8888
reinterpret_cast<T *>(Storage)->~T();
8989
ContainsValue = true;
9090
new (Storage) T(Value);
9191
return *this;
9292
}
9393

94-
template <typename U>
95-
optional &operator=(const std::optional<U> &Other) {
94+
template <typename U> optional &operator=(const std::optional<U> &Other) {
9695
if (has_value())
9796
reinterpret_cast<T *>(Storage)->~T();
9897
ContainsValue = Other;

sycl/source/queue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const optional<SubmitPostProcessF> &SubmissionInfo::PostProcessorFunc() const {
3232
return impl->MPostProcessorFunc;
3333
}
3434

35-
std::shared_ptr<detail::queue_impl> & SubmissionInfo::SecondaryQueue() {
35+
std::shared_ptr<detail::queue_impl> &SubmissionInfo::SecondaryQueue() {
3636
return impl->MSecondaryQueue;
3737
}
3838

0 commit comments

Comments
 (0)