QtGlobal: mark qVersion() and qSharedBuild() as nothrow
authorMarc Mutz <marc.mutz@kdab.com>
Tue, 7 Aug 2012 08:54:00 +0000 (10:54 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 7 Sep 2012 13:39:31 +0000 (15:39 +0200)
Change-Id: Id9dcf71363754cf6aae94012b22d144455e213eb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/global/qglobal.cpp
src/corelib/global/qglobal.h

index 9b9d4b0..e1eb273 100644 (file)
@@ -860,12 +860,12 @@ Q_CORE_EXPORT void *qMemSet(void *dest, int c, size_t n);
     \sa QT_VERSION_STR
 */
 
-const char *qVersion()
+const char *qVersion() Q_DECL_NOTHROW
 {
     return QT_VERSION_STR;
 }
 
-bool qSharedBuild()
+bool qSharedBuild() Q_DECL_NOTHROW
 {
 #ifdef QT_SHARED
     return true;
index 350b811..8aea18d 100644 (file)
@@ -556,8 +556,8 @@ Q_NORETURN Q_CORE_EXPORT void qTerminate() Q_DECL_NOTHROW;
 #  endif
 #endif
 
-Q_CORE_EXPORT const char *qVersion();
-Q_CORE_EXPORT bool qSharedBuild();
+Q_CORE_EXPORT const char *qVersion() Q_DECL_NOTHROW;
+Q_CORE_EXPORT bool qSharedBuild() Q_DECL_NOTHROW;
 
 #ifndef Q_OUTOFLINE_TEMPLATE
 #  define Q_OUTOFLINE_TEMPLATE