mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fix multiple MSVC warnings
This commit is contained in:
parent
6e2c0472c6
commit
108444d29b
@ -45,7 +45,7 @@ static void setAreaProperties(Area &area, const QJsonValue &properties)
|
|||||||
if (o["fill-opacity"].isDouble())
|
if (o["fill-opacity"].isDouble())
|
||||||
fillColor.setAlphaF(o["fill-opacity"].toDouble());
|
fillColor.setAlphaF(o["fill-opacity"].toDouble());
|
||||||
else
|
else
|
||||||
fillColor.setAlphaF(0.6);
|
fillColor.setAlphaF(0.6f);
|
||||||
}
|
}
|
||||||
|
|
||||||
area.setStyle(PolygonStyle(fillColor, strokeColor, strokeWidth));
|
area.setStyle(PolygonStyle(fillColor, strokeColor, strokeWidth));
|
||||||
|
@ -21,7 +21,7 @@ bool HuffmanText::decode(const SubFile *file, SubFile::Handle &hdl,
|
|||||||
quint32 sym;
|
quint32 sym;
|
||||||
|
|
||||||
while (hs.readSymbol(sym)) {
|
while (hs.readSymbol(sym)) {
|
||||||
for (quint32 i = 0; i < (_table.symbolBits() >> 3); i++) {
|
for (int i = 0; i < (_table.symbolBits() >> 3); i++) {
|
||||||
str.append((quint8)sym);
|
str.append((quint8)sym);
|
||||||
if (((quint8)sym == '\0'))
|
if (((quint8)sym == '\0'))
|
||||||
return true;
|
return true;
|
||||||
|
@ -24,7 +24,7 @@ public:
|
|||||||
if (!subFile)
|
if (!subFile)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_data.resize(1U<<subFile->blockBits());
|
_data.resize(subFile->blockSize());
|
||||||
_file.setFileName(subFile->fileName());
|
_file.setFileName(subFile->fileName());
|
||||||
_file.open(QIODevice::ReadOnly | QIODevice::Unbuffered);
|
_file.open(QIODevice::ReadOnly | QIODevice::Unbuffered);
|
||||||
}
|
}
|
||||||
@ -144,7 +144,10 @@ public:
|
|||||||
bool readVBitfield32(Handle &hdl, quint32 &bitfield) const;
|
bool readVBitfield32(Handle &hdl, quint32 &bitfield) const;
|
||||||
|
|
||||||
const QString &fileName() const {return _path ? *_path : _img->fileName();}
|
const QString &fileName() const {return _path ? *_path : _img->fileName();}
|
||||||
unsigned blockBits() const {return _path ? BLOCK_BITS : _img->blockBits();}
|
int blockSize() const
|
||||||
|
{
|
||||||
|
return _path ? 1U<<BLOCK_BITS : 1U<<_img->blockBits();
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
quint32 _gmpOffset;
|
quint32 _gmpOffset;
|
||||||
|
Loading…
Reference in New Issue
Block a user