Patch: Remove some deprecated functions
Mauro
mauro at nazardo.it
Sat Nov 5 22:41:03 GMT 2011
Hi everyone,
while building calligra I have noticed many compiler warning related to
the use of deprecated functions. I have tried to remove as many as
possible among the most trivial (dates/locale functions).
While browsing the code I also came upon this strange if construct:
[filters/words/rtf/import/rtf-qt/src/UserPropsDestination.cpp]
38 if ( value == 30 ) {
39 m_propertyType = QVariant::String;
40 } else if ( value == 3 ) {
41 m_propertyType == QVariant::Int; // <-- statement with no effect
42 } else if ( value == 5 ) {
43 m_propertyType == QVariant::Double; // again, no effect
} ........... {
49 qDebug() << "unhandled value type in UserPropsDestination:" << value;
50 }
I assumed that the idea was to *set* the m_propertyType field (as in row
39), so I have also fixed that in my patch.
On IRC boemann told me to post the patch here and to take this
opportunity to introduce briefly myself to the community. So... My name
is Mauro and I am a MSc student of Computer Engineering at PoliTO.
I know this is a patch of little value, but I hope to be able to do more
in the future.
Maybe some Junior Jobs...
Best,
--
Mauro Levra
nazardo :)
"If you want to make an apple pie from scratch,
you must first create the universe" -Carl Sagan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patchDeprecated.diff.gz
Type: application/x-gzip
Size: 4571 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20111105/25303019/attachment.bin>
More information about the calligra-devel
mailing list