Skip to content

Commit b3b4646

Browse files
committed
trivial changes
1 parent 0188910 commit b3b4646

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/cllazyfile/lazyP21DataSectionReader.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ lazyP21DataSectionReader::lazyP21DataSectionReader( lazyFileReader * parent, std
4343
}
4444

4545
// part of readdata1
46+
//if this changes, probably need to change sectionReader::getType()
4647
const namedLazyInstance lazyP21DataSectionReader::nextInstance() {
4748
std::streampos end = -1;
4849
namedLazyInstance i;
@@ -53,7 +54,6 @@ const namedLazyInstance lazyP21DataSectionReader::nextInstance() {
5354
if( ( _file.good() ) && ( i.loc.instance > 0 ) ) {
5455
skipWS();
5556
i.loc.section = _sectionID;
56-
skipWS();
5757
i.name = getDelimitedKeyword( ";( /\\" );
5858
if( _file.good() ) {
5959
end = seekInstanceEnd( & i.refs );

src/cllazyfile/lazyTypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typedef std::set< instanceID > instanceSet;
4545
* situations, so the information should be kept up-to-date.
4646
*/
4747
typedef struct {
48-
long begin;
48+
long begin; ///< this is the result of tellg() before reading the instanceID; there may be whitespace or comments, but nothing else.
4949
instanceID instance;
5050
sectionID section;
5151
/* bool modified; */ /* this will be useful when writing instances - if an instance is

src/cllazyfile/sectionReader.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ std::streampos sectionReader::findNormalString( const std::string & str, bool se
8282

8383

8484
//NOTE different behavior than const char * GetKeyword( istream & in, const char * delims, ErrorDescriptor & err ) in read_func.cc
85+
// returns pointer to the contents of a static std::string
8586
const char * sectionReader::getDelimitedKeyword( const char * delimiters ) {
8687
static std::string str;
8788
char c;

src/clstepcore/ExpDict.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -822,13 +822,12 @@ class SC_CORE_EXPORT Inverse_attributeLinkNode : public SingleLinkNode {
822822
class SC_CORE_EXPORT Inverse_attributeList : public SingleLinkList {
823823
private:
824824
protected:
825-
public:
826-
Inverse_attributeList();
827-
virtual ~Inverse_attributeList();
828-
829825
virtual SingleLinkNode * NewNode() {
830826
return new Inverse_attributeLinkNode;
831827
}
828+
public:
829+
Inverse_attributeList();
830+
virtual ~Inverse_attributeList();
832831
Inverse_attributeLinkNode * AddNode( Inverse_attribute * ia );
833832
};
834833

0 commit comments

Comments
 (0)