diff --git a/swift/ql/lib/codeql/swift/elements/File.qll b/swift/ql/lib/codeql/swift/elements/File.qll index 7eb07dbd709..8e97453dce6 100644 --- a/swift/ql/lib/codeql/swift/elements/File.qll +++ b/swift/ql/lib/codeql/swift/elements/File.qll @@ -2,10 +2,10 @@ private import codeql.swift.generated.File class File extends FileBase { /** toString */ - string toString() { result = getAbsolutePath() } + override string toString() { result = getAbsolutePath() } /** Gets the name of this file. */ - string getName() { files(this, result) } + override string getName() { files(this, result) } /** Gets the absolute path of this file. */ string getAbsolutePath() { result = getName() }