Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
control reaches the end of non void function.
#1
Not Solved
Code:
QString COneNavQueryBuild::buildArchiveQuery(const QString m_szRecordname,const QString m_zsOperation)
{
    ......................
    ......................
    if(m_zsOperation.startsWith("Ident"))
    {
      ..................................  
       return sQuery;
    }
    else if (m_zsOperation.contains("GeoArea"))
    {
        ................................
        ...............................      
        QString m_szWstr  = lst.at(2);
        double WLongitude = -0.0;
        ..................................
        if(m_zsOperation.startsWith("In GeoArea"))
        {
            sprintf(chBuffer,"(Latitude>=%f And  Latitu
      }
        else
        {
            sprintf(chBuffer,"(Latitude<%f And  Latitude>%f) And (Longitude<%f And Longitude>%f )",
                    -(SLatitude),NLatitude,-(WLongitude),ELongitude);
        }
        sQuery.append(QString(chBuffer));
    }
    else
    {
        sQuery.append(m_zsOperation);
        return sQuery;
    }
}

for this implementation i am getting a warning[u] as
[b]control reaches the end of non void function
,
Here i know i need to include approriate return type.. but what is the appropriate return tuype for the "Qstring".pls help me thanks.[/b]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Expected End statement error Lavanya N 2 5,155 07-27-2015, 01:52 PM
Last Post: Lavanya N
  Calling a function in a Test Script from a function library anupam4j 3 6,114 06-26-2015, 12:31 AM
Last Post: babu123
  closing browser at end bistritapcv 3 6,202 04-12-2013, 07:21 AM
Last Post: basanth27
  How to end action on error adsherman 6 8,445 07-28-2012, 02:16 AM
Last Post: adsherman
  How to read an * at the end of a string sqadri 2 2,568 01-06-2012, 04:01 PM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)