Skip to content

Commit be7d17e

Browse files
committedJan 25, 2017
Considerably lighten the burden on the overworked translation team
1 parent deef5c9 commit be7d17e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/core/qgsvectorlayer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4321,15 +4321,15 @@ QString QgsVectorLayer::getStyleFromDatabase( const QString& styleId, QString &m
43214321
if ( !myLib )
43224322
{
43234323
msgError = QObject::tr( "Unable to load %1 provider" ).arg( mProviderKey );
4324-
return QObject::tr( "" );
4324+
return QString();
43254325
}
43264326
getStyleById_t* getStyleByIdMethod = reinterpret_cast< getStyleById_t * >( cast_to_fptr( myLib->resolve( "getStyleById" ) ) );
43274327

43284328
if ( !getStyleByIdMethod )
43294329
{
43304330
delete myLib;
43314331
msgError = QObject::tr( "Provider %1 has no %2 method" ).arg( mProviderKey, QStringLiteral( "getStyleById" ) );
4332-
return QObject::tr( "" );
4332+
return QString();
43334333
}
43344334

43354335
return getStyleByIdMethod( mDataSource, styleId, msgError );

‎src/gui/qgstextannotationitem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <QDomDocument>
2020
#include <QPainter>
2121

22-
QgsTextAnnotationItem::QgsTextAnnotationItem( QgsMapCanvas* canvas ): QgsAnnotationItem( canvas ), mDocument( new QTextDocument( QObject::tr( "" ) ) )
22+
QgsTextAnnotationItem::QgsTextAnnotationItem( QgsMapCanvas* canvas ): QgsAnnotationItem( canvas ), mDocument( new QTextDocument( QString() ) )
2323
{
2424
mDocument->setUseDesignMetrics( true );
2525
}
@@ -101,7 +101,7 @@ void QgsTextAnnotationItem::readXml( const QDomDocument& doc, const QDomElement&
101101
{
102102
delete mDocument;
103103
mDocument = new QTextDocument;
104-
mDocument->setHtml( itemElem.attribute( QStringLiteral( "document" ), QObject::tr( "" ) ) );
104+
mDocument->setHtml( itemElem.attribute( QStringLiteral( "document" ), QString() ) );
105105
QDomElement annotationElem = itemElem.firstChildElement( QStringLiteral( "AnnotationItem" ) );
106106
if ( !annotationElem.isNull() )
107107
{

0 commit comments

Comments
 (0)
Please sign in to comment.