Use attributes where possible

This commit is contained in:
Martin Natano
2023-04-19 20:55:30 +02:00
parent a93fc07896
commit 093675cdc3
23 changed files with 142 additions and 133 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
/*
/*
http://en.wikipedia.org/wiki/INI_file
- names and values are trimmed on both sides
- semicolons start a comment line
@@ -128,7 +128,7 @@ bool IniFile::WriteFile( const RString &sPath ) const
bool IniFile::WriteFile( RageFileBasic &f ) const
{
FOREACH_CONST_Child( this, pKey )
FOREACH_CONST_Child( this, pKey )
{
if( f.PutLine( ssprintf("[%s]", pKey->GetName().c_str()) ) == -1 )
{
@@ -199,7 +199,7 @@ bool IniFile::RenameKey(const RString &from, const RString &to)
/*
* (c) 2001-2004 Adam Clauss, Chris Danford
* All rights reserved.
*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
@@ -209,7 +209,7 @@ bool IniFile::RenameKey(const RString &from, const RString &to)
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF