OSDN Git Service

namespace warning fixes
authorIvailo Monev <xakepa10@laimg.moc>
Wed, 18 Oct 2017 03:47:12 +0000 (03:47 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Wed, 18 Oct 2017 03:47:12 +0000 (03:47 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/declarative/qml/qdeclarativecompiledbindings.cpp
src/designer/shared/qtresourceeditordialog.cpp

index 8f486af..1cdd084 100644 (file)
@@ -364,7 +364,6 @@ void QDeclarativeCompiledBindingsPrivate::run(Binding *binding, QDeclarativeProp
     binding->updating = false;
 }
 
-namespace {
 // This structure is exactly 8-bytes in size
 struct Instr {
     enum {
@@ -564,7 +563,6 @@ struct Program {
     const char *data() const { return ((const char *)this) + sizeof(Program); }
     const Instr *instructions() const { return (const Instr *)(data() + dataLength); }
 };
-}
 
 class QDeclarativeBindingCompilerPrivate
 {
index d68f3b9..cc064d6 100644 (file)
@@ -79,9 +79,7 @@ static QString msgTagMismatch(const QString &got, const QString &expected)
     return QApplication::translate("QtResourceEditorDialog", "The file does not appear to be a resource file; element '%1' was found where '%2' was expected.").arg(got).arg(expected);
 }
 
-namespace {
-
-// below 3 data classes should be derived from QSharedData and made implicit shared class
+#warning below 3 data classes should be derived from QSharedData and made implicit shared class
 struct QtResourceFileData {
     QString path;
     QString alias;
@@ -817,9 +815,6 @@ void QtQrcManager::removeResourceFile(QtResourceFile *resourceFile)
 }
 
 
-
-}
-
 // ----------------- QtResourceEditorDialogPrivate
 class QtResourceEditorDialogPrivate
 {