summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authormread <qt-info@nokia.com>2009-08-13 17:19:26 (GMT)
committermread <qt-info@nokia.com>2009-08-13 17:19:26 (GMT)
commit8958c2dfa426115a28e4034b98f56ef318f5ccfa (patch)
treecb1fb1b1de5d201011fd446b2b45fd23222ffa49 /src/corelib/global
parentf76b4e1b4a55008cc45f633c7be55ae9d063dc5b (diff)
downloadQt-8958c2dfa426115a28e4034b98f56ef318f5ccfa.zip
Qt-8958c2dfa426115a28e4034b98f56ef318f5ccfa.tar.gz
Qt-8958c2dfa426115a28e4034b98f56ef318f5ccfa.tar.bz2
Changing names of Symbian leave <-> qt throw translation functions
due to http://qt-reviews.europe.nokia.com/r/67/
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qglobal.cpp14
-rw-r--r--src/corelib/global/qglobal.h10
2 files changed, 12 insertions, 12 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp
index 2a71e29..6d88c91 100644
--- a/src/corelib/global/qglobal.cpp
+++ b/src/corelib/global/qglobal.cpp
@@ -3383,9 +3383,9 @@ public:
\warning This function is only available on Symbian.
- \sa qt_exception2SymbianLeaveL(), qt_exception2SymbianError()
+ \sa qt_symbian_exception2LeaveL(), qt_symbian_exception2Error()
*/
-void qt_throwIfError(int error)
+void qt_symbian_throwIfError(int error)
{
if (error >= KErrNone)
return; // do nothing - not an exception
@@ -3410,11 +3410,11 @@ void qt_throwIfError(int error)
\warning This function is only available on Symbian.
- \sa qt_throwIfError(), qt_exception2SymbianError()
+ \sa qt_symbian_throwIfError(), qt_symbian_exception2Error()
*/
-void qt_exception2SymbianLeaveL(const std::exception& aThrow)
+void qt_symbian_exception2LeaveL(const std::exception& aThrow)
{
- User::Leave(qt_exception2SymbianError(aThrow));
+ User::Leave(qt_symbian_exception2Error(aThrow));
}
/*! \relates <QtGlobal>
@@ -3424,9 +3424,9 @@ void qt_exception2SymbianLeaveL(const std::exception& aThrow)
\warning This function is only available on Symbian.
- \sa qt_throwIfError(), qt_exception2SymbianLeaveL()
+ \sa qt_symbian_throwIfError(), qt_symbian_exception2LeaveL()
*/
-int qt_exception2SymbianError(const std::exception& aThrow)
+int qt_symbian_exception2Error(const std::exception& aThrow)
{
const std::type_info& atype = typeid(aThrow);
int err = KErrGeneral;
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index 35edb20..b4ae2dc 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -2401,15 +2401,15 @@ QT_END_NAMESPACE
namespace std { class exception; }
#endif
QT_BEGIN_NAMESPACE
-Q_CORE_EXPORT void qt_throwIfError(int error);
-Q_CORE_EXPORT void qt_exception2SymbianLeaveL(const std::exception& ex);
-Q_CORE_EXPORT int qt_exception2SymbianError(const std::exception& ex);
+Q_CORE_EXPORT void qt_symbian_throwIfError(int error);
+Q_CORE_EXPORT void qt_symbian_exception2LeaveL(const std::exception& ex);
+Q_CORE_EXPORT int qt_symbian_exception2Error(const std::exception& ex);
#define QT_TRAP_THROWING(_f) \
{ \
TInt ____error; \
TRAP(____error, _f); \
- qt_throwIfError(____error); \
+ qt_symbian_throwIfError(____error); \
}
#define QT_TRYCATCH_ERROR(_err, _f) \
@@ -2418,7 +2418,7 @@ Q_CORE_EXPORT int qt_exception2SymbianError(const std::exception& ex);
try { \
_f; \
} catch (const std::exception &____ex) { \
- _err = qt_exception2SymbianError(____ex); \
+ _err = qt_symbian_exception2Error(____ex); \
} \
}