aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2015-12-22 12:29:13 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2015-12-22 12:29:18 +0000
commit917b1d03cf3afa6939113e2fb0bf89dbfd9db2d7 (patch)
tree3a432549bdbbd012b9e2442f605aab8851992b31 /src/util.cpp
parentc39a6fffd789cb3591ae859c1464703c5fa7f668 (diff)
Set copyright holders displayed in notices separately from the package name
This helps avoid accidental removal of upstream copyright names
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index e8514a2ef0..66dd45dc8c 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -834,3 +834,10 @@ int GetNumCores()
#endif
}
+std::string CopyrightHolders()
+{
+ std::string strCopyrightHolders = _(COPYRIGHT_HOLDERS);
+ if (strCopyrightHolders.find("%s") == strCopyrightHolders.npos)
+ return strCopyrightHolders;
+ return strprintf(strCopyrightHolders, _(PACKAGE_NAME));
+}