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
patchDeprecated.diff.gz
Description: GNU Zip compressed data
_______________________________________________ calligra-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/calligra-devel
