[sword-cvs] sword/src/modules/texts/rawtext rawtext.cpp,1.67,1.68

sword@www.crosswire.org sword@www.crosswire.org
Thu, 15 Jan 2004 20:42:47 -0700


Update of /cvs/core/sword/src/modules/texts/rawtext
In directory www:/tmp/cvs-serv22315/src/modules/texts/rawtext

Modified Files:
	rawtext.cpp 
Log Message:
WINCE fixes

Index: rawtext.cpp
===================================================================
RCS file: /cvs/core/sword/src/modules/texts/rawtext/rawtext.cpp,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- rawtext.cpp	31 Aug 2003 01:58:14 -0000	1.67
+++ rawtext.cpp	16 Jan 2004 03:42:42 -0000	1.68
@@ -111,21 +111,21 @@
 	static VerseKey tmpVK;
 	VerseKey *key;
 	// see if we have a VerseKey * or decendant
-	try {
+	SWTRY {
 		key = SWDYNAMIC_CAST(VerseKey, this->key);
 	}
-	catch ( ... ) {	}
+	SWCATCH ( ... ) {	}
 	if (!key) {
 		ListKey *lkTest = 0;
-		try {
+		SWTRY {
 			lkTest = SWDYNAMIC_CAST(ListKey, this->key);
 		}
-		catch ( ... ) {	}
+		SWCATCH ( ... ) {	}
 		if (lkTest) {
-			try {
+			SWTRY {
 				key = SWDYNAMIC_CAST(VerseKey, lkTest->GetElement());
 			}
-			catch ( ... ) {	}
+			SWCATCH ( ... ) {	}
 		}
 	}
 	if (!key) {
@@ -401,10 +401,10 @@
 			// test to see if our scope for this search is bounded by a
 			// VerseKey
 			VerseKey *testKeyType = 0, vk;
-			try {
+			SWTRY {
 				testKeyType = SWDYNAMIC_CAST(VerseKey, ((scope)?scope:key));
 			}
-			catch ( ... ) {}
+			SWCATCH ( ... ) {}
 			// if we don't have a VerseKey * decendant we can't handle
 			// because of scope.
 			// In the future, add bool SWKey::isValid(const char *tryString);
@@ -485,10 +485,10 @@
 			// test to see if our scope for this search is bounded by a
 			// VerseKey
 			VerseKey *testKeyType = 0;
-			try {
+			SWTRY {
 				testKeyType = SWDYNAMIC_CAST(VerseKey, ((scope)?scope:key));
 			}
-			catch ( ... ) {}
+			SWCATCH ( ... ) {}
 			// if we don't have a VerseKey * decendant we can't handle
 			// because of scope.
 			// In the future, add bool SWKey::isValid(const char *tryString);
@@ -666,10 +666,10 @@
 	const VerseKey *srckey = 0;
 
 	// see if we have a VerseKey * or decendant
-	try {
+	SWTRY {
 		srckey = SWDYNAMIC_CAST(VerseKey, inkey);
 	}
-	catch ( ... ) {}
+	SWCATCH ( ... ) {}
 	// if we don't have a VerseKey * decendant, create our own
 	if (!srckey)
 		srckey = new VerseKey(inkey);