[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master c922787 2/6: Remove unnecessary parentheses
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master c922787 2/6: Remove unnecessary parentheses |
Date: |
Mon, 18 Jun 2018 17:56:57 -0400 (EDT) |
branch: master
commit c922787494378a01fe55563be710eab4d01a4839
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Remove unnecessary parentheses
---
crc32.hpp | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/crc32.hpp b/crc32.hpp
index e3b673a..58b092a 100644
--- a/crc32.hpp
+++ b/crc32.hpp
@@ -71,31 +71,31 @@ class LMI_SO CRC
// (C++11 will make that easier).
inline CRC& CRC::operator+=( bool z)
- {return update(reinterpret_cast<unsigned char const*>(&z), sizeof(z));}
+ {return update(reinterpret_cast<unsigned char const*>(&z), sizeof z);}
inline CRC& CRC::operator+=( char z)
- {return update(reinterpret_cast<unsigned char const*>(&z), sizeof(z));}
+ {return update(reinterpret_cast<unsigned char const*>(&z), sizeof z);}
inline CRC& CRC::operator+=(signed char z)
- {return update(reinterpret_cast<unsigned char const*>(&z), sizeof(z));}
+ {return update(reinterpret_cast<unsigned char const*>(&z), sizeof z);}
inline CRC& CRC::operator+=(unsigned char z)
- {return update(reinterpret_cast<unsigned char const*>(&z), sizeof(z));}
+ {return update(reinterpret_cast<unsigned char const*>(&z), sizeof z);}
inline CRC& CRC::operator+=( short int z)
- {return update(reinterpret_cast<unsigned char const*>(&z), sizeof(z));}
+ {return update(reinterpret_cast<unsigned char const*>(&z), sizeof z);}
inline CRC& CRC::operator+=(unsigned short int z)
- {return update(reinterpret_cast<unsigned char const*>(&z), sizeof(z));}
+ {return update(reinterpret_cast<unsigned char const*>(&z), sizeof z);}
inline CRC& CRC::operator+=( int z)
- {return update(reinterpret_cast<unsigned char const*>(&z), sizeof(z));}
+ {return update(reinterpret_cast<unsigned char const*>(&z), sizeof z);}
inline CRC& CRC::operator+=(unsigned int z)
- {return update(reinterpret_cast<unsigned char const*>(&z), sizeof(z));}
+ {return update(reinterpret_cast<unsigned char const*>(&z), sizeof z);}
inline CRC& CRC::operator+=( long int z)
- {return update(reinterpret_cast<unsigned char const*>(&z), sizeof(z));}
+ {return update(reinterpret_cast<unsigned char const*>(&z), sizeof z);}
inline CRC& CRC::operator+=(unsigned long int z)
- {return update(reinterpret_cast<unsigned char const*>(&z), sizeof(z));}
+ {return update(reinterpret_cast<unsigned char const*>(&z), sizeof z);}
inline CRC& CRC::operator+=( float z)
- {return update(reinterpret_cast<unsigned char const*>(&z), sizeof(z));}
+ {return update(reinterpret_cast<unsigned char const*>(&z), sizeof z);}
inline CRC& CRC::operator+=( double z)
- {return update(reinterpret_cast<unsigned char const*>(&z), sizeof(z));}
+ {return update(reinterpret_cast<unsigned char const*>(&z), sizeof z);}
inline CRC& CRC::operator+=( long double z)
- {return update(reinterpret_cast<unsigned char const*>(&z), sizeof(z));}
+ {return update(reinterpret_cast<unsigned char const*>(&z), sizeof z);}
// Forward char const* and signed char const* to the unsigned char const*
function.
inline CRC& CRC::operator+=( char const* z)
- [lmi-commits] [lmi] master updated (f9f89bd -> 2918ec8), Greg Chicares, 2018/06/18
- [lmi-commits] [lmi] master b3be110 1/6: Correct a syntax error in a comment, Greg Chicares, 2018/06/18
- [lmi-commits] [lmi] master c922787 2/6: Remove unnecessary parentheses,
Greg Chicares <=
- [lmi-commits] [lmi] master 0490c33 4/6: Set clipboard text when pasting census out, Greg Chicares, 2018/06/18
- [lmi-commits] [lmi] master 2918ec8 6/6: Remove scaffolding, Greg Chicares, 2018/06/18
- [lmi-commits] [lmi] master 742ee1a 3/6: Where strlen() semantics are wanted, use strlen(), Greg Chicares, 2018/06/18
- [lmi-commits] [lmi] master 274c964 5/6: Laconize, Greg Chicares, 2018/06/18