mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2025-01-18 12:02:10 +01:00
Cosmetics
This commit is contained in:
parent
0c63b66544
commit
9401f66ad7
@ -27,8 +27,8 @@ static inline qint64 zigzag64decode(quint64 value)
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
static bool varint(CTX &ctx, T &val)
|
static bool varint(CTX &ctx, T &val)
|
||||||
{
|
{
|
||||||
|
unsigned int shift = 0;
|
||||||
val = 0;
|
val = 0;
|
||||||
uint shift = 0;
|
|
||||||
|
|
||||||
while (ctx.bp < ctx.be) {
|
while (ctx.bp < ctx.be) {
|
||||||
val |= ((quint8)*ctx.bp & 0x7F) << shift;
|
val |= ((quint8)*ctx.bp & 0x7F) << shift;
|
||||||
@ -148,11 +148,11 @@ static bool skip(CTX &ctx)
|
|||||||
|
|
||||||
static bool value(CTX &ctx, QVariant &val)
|
static bool value(CTX &ctx, QVariant &val)
|
||||||
{
|
{
|
||||||
qint32 len;
|
|
||||||
QByteArray ba;
|
QByteArray ba;
|
||||||
quint64 num;
|
quint64 num;
|
||||||
double dnum;
|
double dnum;
|
||||||
float fnum;
|
float fnum;
|
||||||
|
qint32 len;
|
||||||
|
|
||||||
if (!length(ctx, len))
|
if (!length(ctx, len))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user