Skip to content

Commit 6392b7b

Browse files
committed
[cpprest-sdk] avoid newlines when no model import
1 parent 19070bb commit 6392b7b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/apiclient-header.mustache

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
#include "{{packageName}}/ApiException.h"
1414
#include "{{packageName}}/IHttpBody.h"
1515
#include "{{packageName}}/HttpContent.h"
16-
{{^hasModelImport}}#include "{{packageName}}/ModelBase.h"{{/hasModelImport}}
16+
{{^hasModelImport}}
17+
#include "{{packageName}}/ModelBase.h"
18+
{{/hasModelImport}}
1719
#if defined (_WIN32) || defined (_WIN64)
1820
#undef U
1921
#endif
@@ -52,7 +54,9 @@ public:
5254
static utility::string_t parameterToString(double value);
5355
static utility::string_t parameterToString(const utility::datetime &value);
5456
static utility::string_t parameterToString(bool value);
55-
{{^hasModelImport}}static utility::string_t parameterToString(const ModelBase& value);{{/hasModelImport}}
57+
{{^hasModelImport}}
58+
static utility::string_t parameterToString(const ModelBase& value);
59+
{{/hasModelImport}}
5660
template<class T>
5761
static utility::string_t parameterToString(const std::vector<T>& value);
5862
template<class T>

0 commit comments

Comments
 (0)