Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
2a53d93e
Commit
2a53d93e
authored
May 11, 2016
by
Jan Möbius
Browse files
Fixed some cppcheck warnings
parent
cdcc0dbc
Changes
3
Hide whitespace changes
Inline
Side-by-side
BasePlugin/PostProcessorInterface.cc
View file @
2a53d93e
...
...
@@ -53,7 +53,8 @@
PostProcessorInput
::
PostProcessorInput
(
GLuint
_colTex
,
GLuint
_depthTex
,
int
_width
,
int
_height
)
:
colorTex_
(
_colTex
),
depthTex_
(
_depthTex
),
width
(
_width
),
height
(
_height
),
sampleCount_
(
0
)
PostProcessorInput
::
PostProcessorInput
(
GLuint
_colTex
,
GLuint
_depthTex
,
int
_width
,
int
_height
)
:
colorTex_
(
_colTex
),
depthTex_
(
_depthTex
),
width
(
_width
),
height
(
_height
),
sampleCount_
(
0
),
texfmt_
(
0
)
{
view_
.
identity
();
proj_
.
identity
();
...
...
BasePlugin/PostProcessorInterface.hh
View file @
2a53d93e
...
...
@@ -82,7 +82,6 @@ struct DLLEXPORT PostProcessorInput
// format of color tex
GLuint
texfmt_
;
// view and projection matrix
ACG
::
GLMatrixf
view_
;
ACG
::
GLMatrixf
proj_
;
...
...
LicenseManager/LicenseManagerActive.cc
View file @
2a53d93e
...
...
@@ -502,10 +502,10 @@ bool LicenseManager::authenticate() {
// ===============================================================================================
// Check License or generate request
// ===============================================================================================
bool
alreadyExpired
=
true
;
if
(
!
elements
.
empty
())
//valid file was found
{
// Check expiry date
QDate
currentDate
=
QDate
::
currentDate
();
QDate
expiryDate
=
QDate
::
fromString
(
elements
[
1
],
Qt
::
ISODate
);
...
...
@@ -522,16 +522,11 @@ bool LicenseManager::authenticate() {
macFound
=
true
;
}
if
(
timestampOk
())
{
alreadyExpired
=
false
;
}
if
(
!
signatureOk
)
{
authstring_
+=
tr
(
"License Error: The license file signature for Plugin
\"
"
)
+
name
()
+
tr
(
"
\"
is invalid!
\n\n
"
);
}
else
if
(
expired
)
{
authstring_
+=
tr
(
"License Error: The license for plugin
\"
"
)
+
name
()
+
tr
(
"
\"
has expired on "
)
+
elements
[
1
]
+
"!
\n\n
"
;
}
else
if
(
alreadyExpired
)
{
}
else
if
(
!
timestampOk
()
)
{
authstring_
+=
tr
(
"License Error: System time has been reset. The license for plugin
\"
"
)
+
name
()
+
tr
(
"
\"
has been expired!
\n\n
"
);
}
else
if
(
elements
[
2
]
!=
pluginFileName
()
)
{
authstring_
+=
tr
(
"License Error: The license file contains plugin name
\"
"
)
+
elements
[
2
]
+
tr
(
"
\"
but this is plugin
\"
"
)
+
name
()
+
"
\"
!
\n\n
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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