Remove some unused, local variables
Change-Id: I453162d2d396bb3427064d3b1593bb6c71376605 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
7809bba68f
commit
2d4fe257ca
@ -216,7 +216,6 @@ Q_GLOBAL_STATIC(QReadWriteLock, customTypesLock)
|
||||
void QDBusMetaType::registerMarshallOperators(int id, MarshallFunction mf,
|
||||
DemarshallFunction df)
|
||||
{
|
||||
QByteArray var;
|
||||
QVector<QDBusCustomTypeInfo> *ct = customTypes();
|
||||
if (id < 0 || !mf || !df || !ct)
|
||||
return; // error!
|
||||
|
@ -1147,8 +1147,6 @@ void QDashStroker::processCurrentSubpath()
|
||||
|
||||
QLineF cline;
|
||||
|
||||
QPainterPath dashPath;
|
||||
|
||||
QSubpathFlatIterator it(&m_elements, m_dashThreshold);
|
||||
qfixed2d prev = it.next();
|
||||
|
||||
|
@ -381,7 +381,6 @@ void QTextOdfWriter::writeInlineCharacter(QXmlStreamWriter &writer, const QTextF
|
||||
}
|
||||
|
||||
if (image.isNull()) {
|
||||
QString context;
|
||||
if (image.isNull()) { // try direct loading
|
||||
name = imageFormat.name(); // remove qrc:/ prefix again
|
||||
image.load(name);
|
||||
|
@ -105,7 +105,7 @@ void WriteDeclaration::acceptUI(DomUI *node)
|
||||
QString qualifiedClassName = node->elementClass() + m_option.postfix;
|
||||
QString className = qualifiedClassName;
|
||||
|
||||
QString varName = m_driver->findOrInsertWidget(node->elementWidget());
|
||||
m_driver->findOrInsertWidget(node->elementWidget());
|
||||
QString widgetClassName = node->elementWidget()->attributeClass();
|
||||
|
||||
QString exportMacro = node->elementExportMacro();
|
||||
|
@ -925,7 +925,6 @@ void QPixmapBlurFilter::draw(QPainter *painter, const QPointF &p, const QPixmap
|
||||
scaledRadius /= scale;
|
||||
|
||||
QImage srcImage;
|
||||
QImage destImage;
|
||||
|
||||
if (srcRect == src.rect()) {
|
||||
srcImage = src.toImage();
|
||||
|
@ -278,7 +278,6 @@ void drawDial(const QStyleOptionSlider *option, QPainter *painter)
|
||||
buttonColor.setHsv(buttonColor .hue(),
|
||||
qMin(140, buttonColor .saturation()),
|
||||
qMax(180, buttonColor.value()));
|
||||
QColor shadowColor(0, 0, 0, 20);
|
||||
|
||||
if (enabled) {
|
||||
// Drop shadow
|
||||
|
Loading…
x
Reference in New Issue
Block a user