mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-28 15:47:30 +01:00
refactor(sonar): remove empty statements, one declaration per statement (cpp:S1116, cpp:S1659)
This commit is contained in:
@@ -14,39 +14,43 @@ namespace flip_s3tc
|
||||
|
||||
struct dxt1_block
|
||||
{
|
||||
uint16_t c0, c1;
|
||||
uint8_t dcba,
|
||||
hgfe,
|
||||
lkji,
|
||||
ponm;
|
||||
uint16_t c0;
|
||||
uint16_t c1;
|
||||
uint8_t dcba;
|
||||
uint8_t hgfe;
|
||||
uint8_t lkji;
|
||||
uint8_t ponm;
|
||||
};
|
||||
|
||||
struct dxt23_block
|
||||
{
|
||||
uint16_t adacabaa,
|
||||
ahagafae,
|
||||
alakajai,
|
||||
apaoanam;
|
||||
uint16_t c0, c1;
|
||||
uint8_t dcba,
|
||||
hgfe,
|
||||
lkji,
|
||||
ponm;
|
||||
uint16_t adacabaa;
|
||||
uint16_t ahagafae;
|
||||
uint16_t alakajai;
|
||||
uint16_t apaoanam;
|
||||
uint16_t c0;
|
||||
uint16_t c1;
|
||||
uint8_t dcba;
|
||||
uint8_t hgfe;
|
||||
uint8_t lkji;
|
||||
uint8_t ponm;
|
||||
};
|
||||
|
||||
struct dxt45_block
|
||||
{
|
||||
uint8_t a0, a1;
|
||||
uint8_t a0;
|
||||
uint8_t a1;
|
||||
struct
|
||||
{
|
||||
uint8_t alpha[3];
|
||||
} ahagafaeadacabaa,
|
||||
apaoanamalakajai;
|
||||
uint16_t c0, c1;
|
||||
uint8_t dcba,
|
||||
hgfe,
|
||||
lkji,
|
||||
ponm;
|
||||
uint16_t c0;
|
||||
uint16_t c1;
|
||||
uint8_t dcba;
|
||||
uint8_t hgfe;
|
||||
uint8_t lkji;
|
||||
uint8_t ponm;
|
||||
};
|
||||
|
||||
#pragma pack(pop)
|
||||
@@ -123,8 +127,10 @@ void flip_dxt45_block(struct dxt45_block *block)
|
||||
*/
|
||||
void flip_dxt1_image(void *data, int width, int height)
|
||||
{
|
||||
int x, y;
|
||||
struct dxt1_block temp1, temp2;
|
||||
int x;
|
||||
int y;
|
||||
struct dxt1_block temp1;
|
||||
struct dxt1_block temp2;
|
||||
struct dxt1_block *blocks = (struct dxt1_block *)data;
|
||||
|
||||
width = (width + 3) / 4;
|
||||
@@ -152,8 +158,10 @@ void flip_dxt1_image(void *data, int width, int height)
|
||||
*/
|
||||
void flip_dxt23_image(void *data, int width, int height)
|
||||
{
|
||||
int x, y;
|
||||
struct dxt23_block temp1, temp2;
|
||||
int x;
|
||||
int y;
|
||||
struct dxt23_block temp1;
|
||||
struct dxt23_block temp2;
|
||||
struct dxt23_block *blocks = (struct dxt23_block *)data;
|
||||
|
||||
width = (width + 3) / 4;
|
||||
@@ -181,8 +189,10 @@ void flip_dxt23_image(void *data, int width, int height)
|
||||
*/
|
||||
void flip_dxt45_image(void *data, int width, int height)
|
||||
{
|
||||
int x, y;
|
||||
struct dxt45_block temp1, temp2;
|
||||
int x;
|
||||
int y;
|
||||
struct dxt45_block temp1;
|
||||
struct dxt45_block temp2;
|
||||
struct dxt45_block *blocks = (struct dxt45_block *)data;
|
||||
|
||||
width = (width + 3) / 4;
|
||||
|
||||
@@ -19,7 +19,7 @@ public:
|
||||
// constructors
|
||||
opengl33_skydome() = default;
|
||||
// destructor
|
||||
~opengl33_skydome() {;}
|
||||
~opengl33_skydome() = default;
|
||||
// methods
|
||||
// updates data stores on the opengl end. NOTE: unbinds buffers
|
||||
void update();
|
||||
|
||||
@@ -139,9 +139,8 @@ opengl_vbogeometrybank::setup_buffer() {
|
||||
// may be better to initiate upload earlier (during update phase) and trust this effort won't go to waste
|
||||
if( true == m_chunks.empty() ) { return; }
|
||||
|
||||
std::size_t
|
||||
vertexcount{ 0 },
|
||||
indexcount{ 0 };
|
||||
std::size_t vertexcount{ 0 };
|
||||
std::size_t indexcount{ 0 };
|
||||
auto chunkiterator = m_chunks.cbegin();
|
||||
for( auto &chunkrecord : m_chunkrecords ) {
|
||||
// fill records for all chunks, based on the chunk data
|
||||
|
||||
@@ -81,7 +81,7 @@ smoke_source::deserialize( cParser &Input ) {
|
||||
if( false == Input.ok() ) { return false; }
|
||||
|
||||
while( true == deserialize_mapping( Input ) ) {
|
||||
; // all work done by while()
|
||||
// all work done by while()
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user