comparison Applications/Samples/SingleFrameApplication.h @ 528:45f4953f4162 bgo-commands-codegen

fixed warnings
author Benjamin Golinvaux <bgo@osimis.io>
date Sun, 17 Mar 2019 20:14:46 +0100
parents 3b4df9925db6
children 6af3099ed8da
comparison
equal deleted inserted replaced
527:b1377625e4ba 528:45f4953f4162
136 slice = 0; 136 slice = 0;
137 } 137 }
138 138
139 if (slice >= static_cast<int>(source_->GetSliceCount())) 139 if (slice >= static_cast<int>(source_->GetSliceCount()))
140 { 140 {
141 slice = source_->GetSliceCount() - 1; 141 slice = static_cast<int>(source_->GetSliceCount()) - 1;
142 } 142 }
143 143
144 if (slice != static_cast<int>(slice_)) 144 if (slice != static_cast<int>(slice_))
145 { 145 {
146 SetSlice(slice); 146 SetSlice(slice);
158 void SetSlice(size_t index) 158 void SetSlice(size_t index)
159 { 159 {
160 if (source_ != NULL && 160 if (source_ != NULL &&
161 index < source_->GetSliceCount()) 161 index < source_->GetSliceCount())
162 { 162 {
163 slice_ = index; 163 slice_ = static_cast<unsigned int>(index);
164 164
165 #if 1 165 #if 1
166 GetMainWidget().SetSlice(source_->GetSlice(slice_).GetGeometry()); 166 GetMainWidget().SetSlice(source_->GetSlice(slice_).GetGeometry());
167 #else 167 #else
168 // TEST for scene extents - Rotate the axes 168 // TEST for scene extents - Rotate the axes