diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-11 23:16:58 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-11 23:16:58 +0900 |
| commit | ce818c16a5aebe334dfb50ae6c81f5cdb4b97fd9 (patch) | |
| tree | 11b97dcdc0f296cba584eca0a52abab1664e66c7 | |
| parent | 53e9d20219775c682bddafbffb2a3e25580eee08 (diff) | |
| download | tdegraphics-remove/no-exception.tar.gz tdegraphics-remove/no-exception.zip | |
Replace __EXCEPTIONS usage with equivalent one using Q_NO_EXCEPTIONSremove/no-exception
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
| -rw-r--r-- | kviewshell/plugins/djvu/libdjvu/GException.h | 2 | ||||
| -rw-r--r-- | kviewshell/plugins/djvu/libdjvu/GThreads.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/kviewshell/plugins/djvu/libdjvu/GException.h b/kviewshell/plugins/djvu/libdjvu/GException.h index 41a8b9a8..2df26894 100644 --- a/kviewshell/plugins/djvu/libdjvu/GException.h +++ b/kviewshell/plugins/djvu/libdjvu/GException.h @@ -229,7 +229,7 @@ private: #if defined(_MSC_VER) #define CPP_SUPPORTS_EXCEPTIONS #endif -#if defined(__EXCEPTIONS) +#ifndef Q_NO_EXCEPTIONS #define CPP_SUPPORTS_EXCEPTIONS #endif // Decide which exception model to use diff --git a/kviewshell/plugins/djvu/libdjvu/GThreads.cpp b/kviewshell/plugins/djvu/libdjvu/GThreads.cpp index 2e96d887..3bbe6fb8 100644 --- a/kviewshell/plugins/djvu/libdjvu/GThreads.cpp +++ b/kviewshell/plugins/djvu/libdjvu/GThreads.cpp @@ -661,7 +661,7 @@ GThread::start(void *arg) #endif #endif // Catch exceptions -#ifdef __EXCEPTIONS +#ifndef Q_NO_EXCEPTIONS try { #endif @@ -678,7 +678,7 @@ GThread::start(void *arg) #endif } G_ENDCATCH; -#ifdef __EXCEPTIONS +#ifndef Q_NO_EXCEPTIONS } catch(...) { @@ -1568,7 +1568,7 @@ starttwo(GThread *thr) // an exception context pointer. Therefore // we can register the exception handlers. // It is placed after ``startone'' to avoid inlining. -#ifdef __EXCEPTIONS +#ifndef Q_NO_EXCEPTIONS try { #endif @@ -1585,7 +1585,7 @@ starttwo(GThread *thr) #endif } G_ENDCATCH; -#ifdef __EXCEPTIONS +#ifndef Q_NO_EXCEPTIONS } catch(...) { |
