projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ca586c
)
Use qEnvironmentVariableIsEmpty
author
Nicolas Fella
<nicolas.fella@gmx.de>
Sat, 21 Mar 2020 00:05:45 +0000
(
01:05
+0100)
committer
Nicolas Fella
<nicolas.fella@gmx.de>
Sat, 21 Mar 2020 00:06:15 +0000
(
01:06
+0100)
clazy suggests that it is more efficient since it doesn't allocate.
Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
src/common/checksums.cpp
patch
|
blob
|
history
diff --git
a/src/common/checksums.cpp
b/src/common/checksums.cpp
index 7cfb1353f2eba789b67357d73e4a0e4e4f07c66b..6edf84de90fd57b250a27ccecf005c9c248bfeb1 100644
(file)
--- a/
src/common/checksums.cpp
+++ b/
src/common/checksums.cpp
@@
-150,7
+150,7
@@
QByteArray contentChecksumType()
static bool checksumComputationEnabled()
{
- static bool enabled = q
getenv("OWNCLOUD_DISABLE_CHECKSUM_COMPUTATIONS").isEmpty(
);
+ static bool enabled = q
EnvironmentVariableIsEmpty("OWNCLOUD_DISABLE_CHECKSUM_COMPUTATIONS"
);
return enabled;
}