[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kugar
From: Christian Mueller <cmueller () gmx ! de>
Date: 2006-10-08 23:31:09
Message-ID: 1160350269.944775.11034.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 593760 by cmueller:
EBN: Adding single characters to a QString is faster
if the characters are QChars and not QStrings.
M +1 -1 kudesigner_lib/field.cpp
M +2 -2 kudesigner_lib/specialfield.cpp
M +1 -1 lib/mfieldobject.cpp
M +2 -2 lib/mutil.cpp
--- trunk/koffice/kugar/kudesigner_lib/field.cpp #593759:593760
@@ -79,7 +79,7 @@
void Field::draw( QPainter &painter )
{
- props[ "Text" ].setValue( "[" + props[ "Field" ].value().toString() + "]" );
+ props[ "Text" ].setValue( '[' + props[ "Field" ].value().toString() + ']' );
Label::draw( painter );
props[ "Text" ].setValue( "" );
}
--- trunk/koffice/kugar/kudesigner_lib/specialfield.cpp #593759:593760
@@ -55,9 +55,9 @@
void SpecialField::draw( QPainter &painter )
{
- props[ "Text" ].setValue( "[" +
+ props[ "Text" ].setValue( '[' +
QString( props[ "Type" ].value().toInt() ? i18n( \
"PageNo" ) : i18n( "Date" ) )
- + "]" );
+ + ']' );
Label::draw( painter );
}
--- trunk/koffice/kugar/lib/mfieldobject.cpp #593759:593760
@@ -237,7 +237,7 @@
// If neg value, add back the sign
if ( offset )
- tmp = "-" + tmp;
+ tmp = '-' + tmp;
// Set the new string to the field
text = tmp;
--- trunk/koffice/kugar/lib/mutil.cpp #593759:593760
@@ -30,9 +30,9 @@
// Add leading zeros to month and day
if ( value.month() < 10 )
- month = "0" + month;
+ month = '0' + month;
if ( value.day() < 10 )
- day = "0" + day;
+ day = '0' + day;
// Create a two digit year
year.setNum( value.year() );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic