Fixes by clang-format

This commit is contained in:
kriben authored and github-actions[bot] committed 2026-09-07 10:24:47 +00:00
1 parent b3bb8678f0
commit 26d2f81b3d
3 files changed
+16 -10

No files matched your search

@@ -69,14 +69,14 @@ namespace RimKeywordFactory
namespace
{
// A single shared parser instance is used for all keyword schema lookups. Constructing an
// Opm::Parser populates the complete keyword database and costs milliseconds, which is far too
// expensive to repeat for every keyword being serialised.
const Opm::Parser& sharedParser()
{
static const Opm::Parser parser;
return parser;
}
// A single shared parser instance is used for all keyword schema lookups. Constructing an
// Opm::Parser populates the complete keyword database and costs milliseconds, which is far too
// expensive to repeat for every keyword being serialised.
const Opm::Parser& sharedParser()
{
static const Opm::Parser parser;
return parser;
}
} // namespace
//--------------------------------------------------------------------------------------------------
+4 -1
View File
@@ -125,7 +125,10 @@ public:
using MethodRequestT = std::function<
void( ServiceT&, ServerContext*, RequestT*, ResponseWriterT*, CompletionQueue*, ServerCompletionQueue*, void* )>;
RiaGrpcUnaryCallback( ServiceT* service, MethodImplT methodImpl, MethodRequestT methodRequest, bool runsOnServerThread = false );
RiaGrpcUnaryCallback( ServiceT* service,
MethodImplT methodImpl,
MethodRequestT methodRequest,
bool runsOnServerThread = false );
RiaGrpcCallbackInterface* createNewFromThis() const override;
void createRequestHandler( ServerCompletionQueue* completionQueue ) override;
+4 -1
View File
@@ -109,7 +109,10 @@ RiaGrpcUnaryCallback<ServiceT, RequestT, ReplyT>::RiaGrpcUnaryCallback( ServiceT
template <typename ServiceT, typename RequestT, typename ReplyT>
RiaGrpcCallbackInterface* RiaGrpcUnaryCallback<ServiceT, RequestT, ReplyT>::createNewFromThis() const
{
return new RiaGrpcUnaryCallback<ServiceT, RequestT, ReplyT>( this->m_service, this->m_methodImpl, this->m_methodRequest, m_runsOnServerThread );
return new RiaGrpcUnaryCallback<ServiceT, RequestT, ReplyT>( this->m_service,
this->m_methodImpl,
this->m_methodRequest,
m_runsOnServerThread );
}
//--------------------------------------------------------------------------------------------------