Skip to content

Commit 54d5f99

Browse files
committed
Fixed number od line for getForLogFormat
1 parent 3530ce1 commit 54d5f99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wsjcpp_yaml.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void WsjcppYamlPlaceInFile::setLine(const std::string &sLine) {
5858
// ---------------------------------------------------------------------
5959

6060
std::string WsjcppYamlPlaceInFile::getForLogFormat() {
61-
return "(" + m_sFilename + ":" + std::to_string(m_nNumberOfLine) + "): " + m_sLine;
61+
return "(" + m_sFilename + ":" + std::to_string(m_nNumberOfLine + 1) + "): " + m_sLine;
6262
}
6363

6464
// ---------------------------------------------------------------------

wsjcpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required: 3.0
33
cmake_cxx_standard: 11
44

55
name: wsjcpp-yaml
6-
version: v0.1.1
6+
version: v0.1.2
77
description: Read/Write yaml files
88
issues: https://github.com/wsjcpp/wsjcpp-yaml/issues
99

0 commit comments

Comments
 (0)