Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37866744
en ru br
ALT Linux repos
S:5.15.10-alt1

Group :: System/Libraries
RPM: qt5-declarative

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: alt-remove-createSize.patch
Download


From faf99c36d29bfad629fb6ec541ccc2f61ef93443 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C4=99drzej=20Nowacki?= <jedrzej.nowacki@qt.io>
Date: Mon, 13 Aug 2018 15:21:59 +0200
Subject: Remove unused function
QQmlType::createSize was unused and it's purpose was not clear enough.
Change-Id: If4ef502d0a4ea7ca53351f04ea45c2a73a2b3d22
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
---
 src/qml/qml/qqmlmetatype.cpp | 7 -------
 src/qml/qml/qqmlmetatype_p.h | 2 --
 2 files changed, 9 deletions(-)
--- a/src/qml/qml/qqmltype.cpp
+++ b/src/qml/qml/qqmltype.cpp
@@ -537,6 +537,13 @@ QString QQmlType::noCreationReason() con
     return d->extraData.cd->noCreationReason;
 }
 
+int QQmlType::createSize() const
+{
+    if (!d || d->regType != CppType)
+        return 0;
+    return d->extraData.cd->allocationSize;
+}
+
 bool QQmlType::isCreatable() const
 {
     return d && d->regType == CppType && d->extraData.cd->newFunc;
--- a/src/qml/qml/qqmltype_p.h
+++ b/src/qml/qml/qqmltype_p.h
@@ -109,6 +109,7 @@ public:
 
     typedef void (*CreateFunc)(void *);
     CreateFunc createFunction() const;
+    int createSize() const;
     QQmlCustomParser *customParser() const;
 
     bool isCreatable() const;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin