aboutsummaryrefslogtreecommitdiff
path: root/src/tools/myriad.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-03-31 14:23:55 +0000
committerMike Buland <eichlan@xagasoft.com>2010-03-31 14:23:55 +0000
commitdb45c881d98f2288aa26960e5eae6070f792b82a (patch)
tree21c3a259c7dcb9312d12acfaef2e76fd910d4de1 /src/tools/myriad.cpp
parent85315f2cc85a0c44055cd94c1b7de8cfe11b46e1 (diff)
downloadlibbu++-db45c881d98f2288aa26960e5eae6070f792b82a.tar.gz
libbu++-db45c881d98f2288aa26960e5eae6070f792b82a.tar.bz2
libbu++-db45c881d98f2288aa26960e5eae6070f792b82a.tar.xz
libbu++-db45c881d98f2288aa26960e5eae6070f792b82a.zip
Removed the bool cast operator from FBasicString. It turns out it was causing
way, way, way more problems than it solved. A number of libbu++ tests were inacurate because of it, there were problems in several other programs, and there may be more that have problems we haven't found yet because of this. This will most likely cause complitaion errors, especially in places we didn't expect, where strings were being stored into or passed as integers and the like. In cases where you were just testing a string, just call the "isSet()" function, which is functionally equivellent to the old bool cast operator.
Diffstat (limited to '')
-rw-r--r--src/tools/myriad.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/myriad.cpp b/src/tools/myriad.cpp
index 4147579..b3067d2 100644
--- a/src/tools/myriad.cpp
+++ b/src/tools/myriad.cpp
@@ -75,7 +75,7 @@ int main( int argc, char *argv[] )
75 switch( opts.eMode ) 75 switch( opts.eMode )
76 { 76 {
77 case modeCreate: 77 case modeCreate:
78 if( !opts.sOutput ) 78 if( !opts.sOutput.isSet() )
79 { 79 {
80 sio << "Please specify an output file to create a stream for." 80 sio << "Please specify an output file to create a stream for."
81 << sio.nl; 81 << sio.nl;
@@ -90,7 +90,7 @@ int main( int argc, char *argv[] )
90 break; 90 break;
91 91
92 case modeInfo: 92 case modeInfo:
93 if( !opts.sInput ) 93 if( !opts.sInput.isSet() )
94 { 94 {
95 sio << "Please specify an input file to display info about." 95 sio << "Please specify an input file to display info about."
96 << sio.nl; 96 << sio.nl;