Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
turleypol committed Jan 11, 2024
1 parent f5cbe64 commit 6a9b06f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Expand Up @@ -60,7 +60,7 @@ void SourceFileProcessor::use_module( const std::string& module_name,
{
// This is fatal because if we keep going, we'll likely report a bunch of errors
// that would just be noise, like missing module function declarations or constants.
report.fatal( including_location, "Unable to use module '{}.", module_name );
report.fatal( including_location, "Unable to use module '{}'.", module_name );
}
workspace.source_files[pathname] = sf;

Expand Down
2 changes: 1 addition & 1 deletion pol-core/clib/cfgfile.cpp
Expand Up @@ -1003,7 +1003,7 @@ void ConfigFile::display_error( const std::string& msg, bool show_curline,
}

if ( show_curline )
tmp += fmt::format( "\n\tNear line: {}\n", _cur_line );
tmp += fmt::format( "\n\tNear line: {}", _cur_line );
if ( _element_line_start && !showed_elem_line )
tmp += fmt::format( "\n\tElement started on line: {}", _element_line_start );
ERROR_PRINTLN( tmp );
Expand Down
14 changes: 7 additions & 7 deletions pol-core/clib/streamsaver.cpp
Expand Up @@ -47,13 +47,13 @@ OFStreamWriter::OFStreamWriter( std::ofstream* stream )
OFStreamWriter::~OFStreamWriter()
{
#if 0
if ( _writer->size() )
{
Tools::HighPerfTimer t;
*_stream << _writer->c_str();
_fs_time += t.ellapsed();
}
ERROR_PRINTLN("streamwriter {} io time {}",_stream_name,_fs_time.count( ));
if ( _writer->size() )
{
Tools::HighPerfTimer t;
*_stream << _writer->c_str();
_fs_time += t.ellapsed();
}
ERROR_PRINTLN( "streamwriter {} io time {}", _stream_name, _fs_time.count() );
#else
if ( _writer->size() )
*_stream << _writer->str();
Expand Down
2 changes: 1 addition & 1 deletion pol-core/pol/multi/multis.cpp
Expand Up @@ -36,7 +36,7 @@ UMulti::UMulti( const Items::ItemDesc& itemdesc ) : Item( itemdesc, Core::UOBJ_C
if ( !MultiDefByMultiIDExists( itemdesc.multiid ) )
{
ERROR_PRINTLN( "Tried to create a Multi type {:#X}", itemdesc.objtype );
throw std::runtime_error( "Unvalid Multi type" );
throw std::runtime_error( "Invalid Multi type" );
}
++Core::stateManager.uobjcount.umulti_count;
}
Expand Down

0 comments on commit 6a9b06f

Please sign in to comment.