diff options
Diffstat (limited to 'src/sksl/SkSLPosition.h')
-rw-r--r-- | src/sksl/SkSLPosition.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sksl/SkSLPosition.h b/src/sksl/SkSLPosition.h index b1841c5a59..83cfe82542 100644 --- a/src/sksl/SkSLPosition.h +++ b/src/sksl/SkSLPosition.h @@ -4,7 +4,7 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ - + #ifndef SKSL_POSITION #define SKSL_POSITION @@ -17,15 +17,15 @@ namespace SkSL { * ignored. */ struct Position { - Position() + Position() : fLine(-1) , fColumn(-1) {} - + Position(int line, int column) : fLine(line) , fColumn(column) {} - SkString description() const { + String description() const { return to_string(fLine); } |