More const/immutable

This commit is contained in:
Hackerpilot 2015-01-26 00:15:07 -08:00
parent 8653704b10
commit f88801f28b
2 changed files with 3 additions and 3 deletions

View File

@ -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]))
{

View File

@ -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))