From f79b998e87fa114d74b53e2485c94b38cc02f188 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Tue, 27 Nov 2012 21:37:53 +0100 Subject: [PATCH] Whitespace cleanup. --- gen/pragma.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gen/pragma.cpp b/gen/pragma.cpp index 79367a6a6c..c2ccc35433 100644 --- a/gen/pragma.cpp +++ b/gen/pragma.cpp @@ -400,10 +400,10 @@ void DtoCheckPragma(PragmaDeclaration *decl, Dsymbol *s, error("the '%s' pragma template's member must be a function declaration", ident->toChars()); fatal(); } - + TemplateParameters& params = *td->parameters; - bool valid_params = - params.dim == 3 && params[1]->isTemplateTypeParameter() && + bool valid_params = + params.dim == 3 && params[1]->isTemplateTypeParameter() && params[2]->isTemplateTupleParameter(); if(valid_params) @@ -411,10 +411,10 @@ void DtoCheckPragma(PragmaDeclaration *decl, Dsymbol *s, TemplateValueParameter* p0 = params[0]->isTemplateValueParameter(); valid_params = valid_params && p0 && p0->valType == Type::tstring; } - + if(!valid_params) { - error("the '%s' pragma template must have exactly three parameters: a string, a type and a type tuple", + error("the '%s' pragma template must have exactly three parameters: a string, a type and a type tuple", ident->toChars()); fatal(); }