More const/immutable
This commit is contained in:
parent
8653704b10
commit
f88801f28b
|
|
@ -87,7 +87,7 @@ int main(string[] args)
|
|||
request.kind = RequestKind.query;
|
||||
if (sendRequest(socket, request))
|
||||
{
|
||||
AutocompleteResponse response = getResponse(socket);
|
||||
const AutocompleteResponse response = getResponse(socket);
|
||||
if (response.completionType == "ack")
|
||||
{
|
||||
writeln("Server is running");
|
||||
|
|
@ -134,7 +134,7 @@ int main(string[] args)
|
|||
}
|
||||
|
||||
// Read in the source
|
||||
bool usingStdin = args.length <= 1;
|
||||
immutable bool usingStdin = args.length <= 1;
|
||||
string fileName = usingStdin ? "stdin" : args[1];
|
||||
if (!usingStdin && !exists(args[1]))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ final class FirstPass : ASTVisitor
|
|||
protection = dec.attributeDeclaration.attribute.attribute.type;
|
||||
return;
|
||||
}
|
||||
IdType p = protection;
|
||||
immutable IdType p = protection;
|
||||
foreach (const Attribute attr; dec.attributes)
|
||||
{
|
||||
if (isProtection(attr.attribute.type))
|
||||
|
|
|
|||
Loading…
Reference in New Issue