summaryrefslogtreecommitdiff
path: root/src/util/WStringAPI.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-09-06 19:35:09 +0200
committerMax Kellermann <max@musicpd.org>2018-09-06 19:35:09 +0200
commit349d8eb2481bc5705776504c128405be4bd77484 (patch)
tree6e544e56f276dfe73124a2d885e4f5d10d3e75a2 /src/util/WStringAPI.hxx
parent94b96bde9b66a187c66f6c29285a2f540efc04c9 (diff)
util/WStringCompare: add "noexcept"
Diffstat (limited to 'src/util/WStringAPI.hxx')
-rw-r--r--src/util/WStringAPI.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/WStringAPI.hxx b/src/util/WStringAPI.hxx
index 160e53420..830b84a9a 100644
--- a/src/util/WStringAPI.hxx
+++ b/src/util/WStringAPI.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2017 Max Kellermann <max.kellermann@gmail.com>
+ * Copyright 2010-2018 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -170,7 +170,7 @@ StringIsEqualIgnoreCase(const wchar_t *a, const wchar_t *b,
gcc_malloc gcc_returns_nonnull gcc_nonnull_all
static inline wchar_t *
-DuplicateString(const wchar_t *p)
+DuplicateString(const wchar_t *p) noexcept
{
#if defined(__sun) && defined (__SVR4)
return std::wcsdup(p);