Skip to content

Commit 5fc4fab

Browse files
committed
Swift: add missing 'overrides'
1 parent 906ce34 commit 5fc4fab

File tree

1 file changed

+2
-2
lines changed
  • swift/ql/lib/codeql/swift/elements

1 file changed

+2
-2
lines changed

swift/ql/lib/codeql/swift/elements/File.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ private import codeql.swift.generated.File
22

33
class File extends FileBase {
44
/** toString */
5-
string toString() { result = getAbsolutePath() }
5+
override string toString() { result = getAbsolutePath() }
66

77
/** Gets the name of this file. */
8-
string getName() { files(this, result) }
8+
override string getName() { files(this, result) }
99

1010
/** Gets the absolute path of this file. */
1111
string getAbsolutePath() { result = getName() }

0 commit comments

Comments
 (0)