Replaced some old 'in' params with const

This commit is contained in:
Ferdinand Majerech 2014-07-28 23:20:35 +02:00
parent 45b15890ca
commit 3c36d4ad63

View file

@ -85,7 +85,7 @@ alias Tuple!(string, "name", string[], "filenames", TestStatus, "kind", string,
*
* Returns: Test input base filenames and their extensions.
*/
string[][string] findTestFilenames(in string dir)
string[][string] findTestFilenames(const string dir)
{
//Groups of extensions indexed by base names.
string[][string] names;
@ -112,7 +112,7 @@ string[][string] findTestFilenames(in string dir)
* tuple = Tuple to copy to.
* strings = Strings to copy.
*/
void stringsToTuple(uint index, F ...)(ref F tuple, in string[] strings)
void stringsToTuple(uint index, F ...)(ref F tuple, const string[] strings)
in{assert(F.length == strings.length);}
body
{
@ -130,8 +130,8 @@ body
*
* Returns: Information about the results of the unittest.
*/
Result execute(F ...)(in string testName, void function(bool, F) testFunction,
string[] filenames, in bool verbose)
Result execute(F ...)(const string testName, void function(bool, F) testFunction,
string[] filenames, const bool verbose)
{
if(verbose)
{
@ -167,7 +167,7 @@ Result execute(F ...)(in string testName, void function(bool, F) testFunction,
* Params: results = Unittest results.
* verbose = Print verbose output?
*/
void display(Result[] results, in bool verbose)
void display(Result[] results, const bool verbose)
{
if(results.length > 0 && !verbose){write("\n");}