@@ -25,7 +25,7 @@ constexpr SFixed<Integer, Fraction>::SFixed(const RawType & value)
2525}
2626
2727template < unsigned Integer, unsigned Fraction >
28- constexpr SFixed<Integer, Fraction>::SFixed(void )
28+ constexpr SFixed<Integer, Fraction>::SFixed()
2929 : value(0 )
3030{
3131}
@@ -125,19 +125,19 @@ constexpr SFixed<Integer, Fraction>::SFixed(const long double & value)
125125//
126126
127127template < unsigned Integer, unsigned Fraction >
128- constexpr typename SFixed<Integer, Fraction>::InternalType SFixed<Integer, Fraction>::getInternal(void ) const
128+ constexpr typename SFixed<Integer, Fraction>::InternalType SFixed<Integer, Fraction>::getInternal() const
129129{
130130 return this ->value ;
131131}
132132
133133template < unsigned Integer, unsigned Fraction >
134- constexpr typename SFixed<Integer, Fraction>::IntegerType SFixed<Integer, Fraction>::getInteger(void ) const
134+ constexpr typename SFixed<Integer, Fraction>::IntegerType SFixed<Integer, Fraction>::getInteger() const
135135{
136136 return (static_cast <IntegerType>(this ->value >> IntegerShift) & IntegerMask) | ((this ->value < 0 ) ? ~IntegerMask : 0 );
137137}
138138
139139template < unsigned Integer, unsigned Fraction >
140- constexpr typename SFixed<Integer, Fraction>::FractionType SFixed<Integer, Fraction>::getFraction(void ) const
140+ constexpr typename SFixed<Integer, Fraction>::FractionType SFixed<Integer, Fraction>::getFraction() const
141141{
142142 return static_cast <FractionType>(this ->value >> FractionShift) & FractionMask;
143143}
@@ -147,13 +147,13 @@ constexpr typename SFixed<Integer, Fraction>::FractionType SFixed<Integer, Fract
147147//
148148
149149template < unsigned Integer, unsigned Fraction >
150- constexpr SFixed<Integer, Fraction>::operator IntegerType (void ) const
150+ constexpr SFixed<Integer, Fraction>::operator IntegerType () const
151151{
152152 return this ->getInteger ();
153153}
154154
155155template < unsigned Integer, unsigned Fraction >
156- constexpr SFixed<Integer, Fraction>::operator float (void ) const
156+ constexpr SFixed<Integer, Fraction>::operator float () const
157157{
158158 return (1 .0F / Scale) *
159159 static_cast <InternalType>
@@ -162,7 +162,7 @@ constexpr SFixed<Integer, Fraction>::operator float(void) const
162162}
163163
164164template < unsigned Integer, unsigned Fraction >
165- constexpr SFixed<Integer, Fraction>::operator double (void ) const
165+ constexpr SFixed<Integer, Fraction>::operator double () const
166166{
167167 return (1.0 / Scale) *
168168 static_cast <InternalType>
@@ -171,7 +171,7 @@ constexpr SFixed<Integer, Fraction>::operator double(void) const
171171}
172172
173173template < unsigned Integer, unsigned Fraction >
174- constexpr SFixed<Integer, Fraction>::operator long double (void ) const
174+ constexpr SFixed<Integer, Fraction>::operator long double () const
175175{
176176 return (1 .0L / Scale) *
177177 static_cast <InternalType>
@@ -181,7 +181,7 @@ constexpr SFixed<Integer, Fraction>::operator long double(void) const
181181
182182template < unsigned Integer, unsigned Fraction >
183183template < unsigned IntegerOut, unsigned FractionOut >
184- constexpr SFixed<Integer, Fraction>::operator SFixed<IntegerOut, FractionOut>(void ) const
184+ constexpr SFixed<Integer, Fraction>::operator SFixed<IntegerOut, FractionOut>() const
185185{
186186 using OutputType = SFixed<IntegerOut, FractionOut>;
187187 using OutputInternalType = typename OutputType::InternalType;
@@ -209,7 +209,7 @@ constexpr SFixed<Integer, Fraction> SFixed<Integer, Fraction>::fromInternal(cons
209209}
210210
211211template < unsigned Integer, unsigned Fraction >
212- constexpr SFixed<Integer, Fraction> SFixed<Integer, Fraction>::operator -(void ) const
212+ constexpr SFixed<Integer, Fraction> SFixed<Integer, Fraction>::operator -() const
213213{
214214 return SFixed<Integer, Fraction>::fromInternal (-this ->value );
215215}
@@ -219,14 +219,14 @@ constexpr SFixed<Integer, Fraction> SFixed<Integer, Fraction>::operator -(void)
219219//
220220
221221template < unsigned Integer, unsigned Fraction >
222- SFixed<Integer, Fraction> & SFixed<Integer, Fraction>::operator ++(void )
222+ SFixed<Integer, Fraction> & SFixed<Integer, Fraction>::operator ++()
223223{
224224 this ->value += (1 << FractionSize);
225225 return *this ;
226226}
227227
228228template < unsigned Integer, unsigned Fraction >
229- SFixed<Integer, Fraction> & SFixed<Integer, Fraction>::operator --(void )
229+ SFixed<Integer, Fraction> & SFixed<Integer, Fraction>::operator --()
230230{
231231 this ->value -= (1 << FractionSize);
232232 return *this ;
0 commit comments