Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
20f53124
Commit
20f53124
authored
Aug 07, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(app): add static_cast for Clang
parent
28d64620
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Units.cpp
src/components/other/units/Units.cpp
+1
-1
QExifImageHeader.cpp
src/utils/QExifImageHeader.cpp
+5
-5
No files found.
src/components/other/units/Units.cpp
View file @
20f53124
...
...
@@ -28,7 +28,7 @@ Units::Units (QObject *parent) : QObject(parent) {}
float
Units
::
getDp
()
const
{
#ifdef Q_OS_MACOS
return
96.0
/
72.0
;
return
static_cast
<
float
>
(
96.0
/
72.0
)
;
#endif // ifdef Q_OS_MACOS
return
1.0
;
...
...
src/utils/QExifImageHeader.cpp
View file @
20f53124
...
...
@@ -540,7 +540,7 @@ quint32 QExifValue::toLong () const {
case
Long
:
return
static_cast
<
const
QExifLongValuePrivate
*>
(
d
.
constData
())
->
value
.
at
(
0
);
case
SignedLong
:
return
static_cast
<
const
QExifSignedLongValuePrivate
*>
(
d
.
constData
())
->
value
.
at
(
0
);
return
static_cast
<
quint32
>
(
static_cast
<
const
QExifSignedLongValuePrivate
*>
(
d
.
constData
())
->
value
.
at
(
0
)
);
}
}
return
0
;
...
...
@@ -598,7 +598,7 @@ qint32 QExifValue::toSignedLong () const {
case
Short
:
return
static_cast
<
const
QExifShortValuePrivate
*>
(
d
.
constData
())
->
value
.
at
(
0
);
case
Long
:
return
static_cast
<
const
QExifLongValuePrivate
*>
(
d
.
constData
())
->
value
.
at
(
0
);
return
static_cast
<
qint32
>
(
static_cast
<
const
QExifLongValuePrivate
*>
(
d
.
constData
())
->
value
.
at
(
0
)
);
case
SignedLong
:
return
static_cast
<
const
QExifSignedLongValuePrivate
*>
(
d
.
constData
())
->
value
.
at
(
0
);
}
...
...
@@ -1544,7 +1544,7 @@ quint32 QExifImageHeader::writeExifHeader (QDataStream &stream, quint16 tag, con
}
else
{
stream
<<
offset
;
offset
+=
value
.
count
(
);
offset
+=
static_cast
<
quint32
>
(
value
.
count
()
);
}
break
;
case
QExifValue
:
:
Undefined
:
...
...
@@ -1556,7 +1556,7 @@ quint32 QExifImageHeader::writeExifHeader (QDataStream &stream, quint16 tag, con
}
else
{
stream
<<
offset
;
offset
+=
value
.
count
(
);
offset
+=
static_cast
<
quint32
>
(
value
.
count
()
);
}
break
;
case
QExifValue
:
:
Ascii
:
...
...
@@ -1569,7 +1569,7 @@ quint32 QExifImageHeader::writeExifHeader (QDataStream &stream, quint16 tag, con
}
else
{
stream
<<
offset
;
offset
+=
value
.
count
(
);
offset
+=
static_cast
<
quint32
>
(
value
.
count
()
);
}
break
;
case
QExifValue
:
:
Short
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment