author | zecke <zecke> | 2004-10-15 19:23:42 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-15 19:23:42 (UTC) |
commit | ac36bfe2794741188da1d6d4b471f96fd15d47ee (patch) (unidiff) | |
tree | 5c1bc264fd554142993be8963aed159f32877d6a /library/calendar.cpp | |
parent | a979ea08e8f9dbade70a9bf4fdc93dcbebb5f3fa (diff) | |
download | opie-ac36bfe2794741188da1d6d4b471f96fd15d47ee.zip opie-ac36bfe2794741188da1d6d4b471f96fd15d47ee.tar.gz opie-ac36bfe2794741188da1d6d4b471f96fd15d47ee.tar.bz2 |
-Add a QPEGLOBAL that adds define for 'weak', 'used' and unused symbols
Make use of the newly added qpeglobal.h to kill custom versions of
similiar macros
-rw-r--r-- | library/calendar.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/library/calendar.cpp b/library/calendar.cpp index 70e764c..d281a14 100644 --- a/library/calendar.cpp +++ b/library/calendar.cpp | |||
@@ -18,10 +18,12 @@ | |||
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "calendar.h" | 20 | #include "calendar.h" |
21 | #include "qpeglobal.h" | ||
21 | 22 | ||
22 | #include <qdatetime.h> | 23 | #include <qdatetime.h> |
23 | #include <qobject.h> | 24 | #include <qobject.h> |
24 | 25 | ||
26 | |||
25 | /*! \class Calendar calendar.html | 27 | /*! \class Calendar calendar.html |
26 | 28 | ||
27 | \brief The Calendar class provides programmers with an easy to calculate | 29 | \brief The Calendar class provides programmers with an easy to calculate |
@@ -30,14 +32,7 @@ | |||
30 | \ingroup qtopiaemb | 32 | \ingroup qtopiaemb |
31 | */ | 33 | */ |
32 | 34 | ||
33 | #ifdef Q_OS_MACX | 35 | static void never_called_tr_function_um_libqpe_ts_etwas_unter_zu_jubeln() QPE_SYMBOL_UNUSED; |
34 | #define ATTRIBUTE_UNUSED | ||
35 | #else | ||
36 | #define ATTRIBUTE_UNUSED __attribute__((unused)) | ||
37 | #endif | ||
38 | |||
39 | |||
40 | static void never_called_tr_function_um_libqpe_ts_etwas_unter_zu_jubeln() ATTRIBUTE_UNUSED; | ||
41 | static void never_called_tr_function_um_libqpe_ts_etwas_unter_zu_jubeln() { | 36 | static void never_called_tr_function_um_libqpe_ts_etwas_unter_zu_jubeln() { |
42 | (void)QObject::tr("Jan"); | 37 | (void)QObject::tr("Jan"); |
43 | (void)QObject::tr("Feb"); | 38 | (void)QObject::tr("Feb"); |