[sword-cvs] sword/utilities mod2osis.cpp,1.8,1.9

sword@www.crosswire.org sword@www.crosswire.org
Fri, 4 Jul 2003 21:58:45 -0700


Update of /usr/local/cvsroot/sword/utilities
In directory www:/tmp/cvs-serv7690/utilities

Modified Files:
	mod2osis.cpp 
Log Message:
Added SWOptionFilter


Index: mod2osis.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/utilities/mod2osis.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** mod2osis.cpp	22 Nov 2002 04:46:03 -0000	1.8
--- mod2osis.cpp	5 Jul 2003 04:58:42 -0000	1.9
***************
*** 52,58 ****
  
  	SWMgr mgr(new MarkupFilterMgr(FMT_OSIS));
! 	OptionsList options = mgr.getGlobalOptions();
! 	for (OptionsList::iterator it = options.begin(); it != options.end(); it++) {
! 		OptionsList values = mgr.getGlobalOptionValues(it->c_str());
  		if (find(values.begin(), values.end(), "On") != values.end()) {
  			mgr.setGlobalOption(it->c_str(), "On");
--- 52,58 ----
  
  	SWMgr mgr(new MarkupFilterMgr(FMT_OSIS));
! 	StringList options = mgr.getGlobalOptions();
! 	for (StringList::iterator it = options.begin(); it != options.end(); it++) {
! 		StringList values = mgr.getGlobalOptionValues(it->c_str());
  		if (find(values.begin(), values.end(), "On") != values.end()) {
  			mgr.setGlobalOption(it->c_str(), "On");