@@ -21,9 +21,8 @@ FileResolver::FileResolver()
2121
2222bool FileResolver::addReferencePath (const Directory& reference)
2323{
24- if (!reference.isAbsolute ()) {
24+ if (!reference.isAbsolute ())
2525 return false ;
26- }
2726
2827 referencePaths.push_back (reference);
2928 return true ;
@@ -33,9 +32,8 @@ Files FileResolver::resolve(const File& file, const bool checkExistence) const
3332{
3433 if (file.isAbsolute ())
3534 {
36- if (!checkExistence || file.exists ()) {
35+ if (!checkExistence || file.exists ())
3736 return Files (1 , file);
38- }
3937 }
4038
4139 Files files;
@@ -44,9 +42,8 @@ Files FileResolver::resolve(const File& file, const bool checkExistence) const
4442 {
4543 const IO ::File resolvedFile (*i + file);
4644
47- if (!checkExistence || resolvedFile.exists ()) {
45+ if (!checkExistence || resolvedFile.exists ())
4846 files.push_back (*i + file);
49- }
5047 }
5148
5249 return files;
@@ -69,9 +66,8 @@ Files FileResolver::resolve(const File& file, const Path& reference, const bool
6966{
7067 if (file.isAbsolute ())
7168 {
72- if (!checkExistence || file.exists ()) {
69+ if (!checkExistence || file.exists ())
7370 return Files (1 , file);
74- }
7571 }
7672
7773 Files result;
@@ -82,27 +78,24 @@ Files FileResolver::resolve(const File& file, const Path& reference, const bool
8278 {
8379 const IO ::File refFile (refDirectory + file);
8480
85- if (!checkExistence || refFile.exists ()) {
81+ if (!checkExistence || refFile.exists ())
8682 result.push_back (refFile);
87- }
8883 }
8984
9085 for (Directories::const_iterator i = referencePaths.begin (); i != referencePaths.end (); ++i)
9186 {
9287 const IO ::File resolvedFile (*i + file);
9388
94- if (!checkExistence || resolvedFile.exists ()) {
89+ if (!checkExistence || resolvedFile.exists ())
9590 result.push_back (*i + file);
96- }
9791 }
9892
9993 if (result.empty ())
10094 {
10195 const IO ::File defaultFile (file);
10296
103- if (!checkExistence || defaultFile.exists ()) {
97+ if (!checkExistence || defaultFile.exists ())
10498 result.push_back (defaultFile);
105- }
10699 }
107100
108101 return result;
0 commit comments