Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiled error when wsdl code generated #170

Conversation

postrstk
Copy link
Contributor

The error is that when generating code, the inclusion of <QSharedPointer> occurs in code_from_wsdl.cpp, and not in code_from_wsdl.h

@@ -91,3 +91,6 @@ add_subdirectory(onvif_org_event)
add_subdirectory(empty_list_wsdl)
add_subdirectory(list_restriction)

add_subdirectory(kddatetime)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase on top of master, this is already in there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -0,0 +1,20 @@
#include "wsdl_test_qsharedpointer_include_wsdl.h"

#include <QtTest>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the full module including all of QtCore, please include only QTest.


#include <QtTest>

class rightInclude:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class capitalization: RightInclude


void testCompiled()
{
QVERIFY(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This statement does nothing, please remove it.

You could at least create an instance of the service, so that this doesn't compile with a fully empty generated file ;)

Hello_Service service;

@@ -37,6 +37,7 @@ SUBDIRS = \
encapsecurity \
prefix_wsdl \
vidyo \
kddatetime \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please rebase

@postrstk postrstk force-pushed the compile-error-without-qsharedpointer-include branch from 51dac4a to c8ea933 Compare March 19, 2019 07:51
@postrstk postrstk force-pushed the compile-error-without-qsharedpointer-include branch from c8ea933 to 01cc592 Compare April 22, 2019 09:06
@postrstk
Copy link
Contributor Author

changed adding a <QSharedPointer> to .h instead .cpp

@SudakovIvan
Copy link
Contributor

As I see, all issues are resolved. Do you have additional questions?

@dfaure-kdab dfaure-kdab merged commit b7182ac into KDAB:master May 13, 2019
winterz pushed a commit that referenced this pull request May 13, 2019
…ted code (#170)

* add test with compiled error code generated

* fix class name

* include only QTest

* include QSharedPointer in header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants