← Back to team overview

ubuntukylin-members team mailing list archive

[Bug 1171079] Re: control reaches end of non-void function

 

** Changed in: chinese-calendar
       Status: In Progress => Opinion

** Changed in: chinese-calendar
     Assignee: Abel Liu (guiltyritter) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Kylin Members, which is subscribed to Chinese-calendar.
https://bugs.launchpad.net/bugs/1171079

Title:
  control reaches end of non-void function

Status in Chinese calendar:
  Opinion

Bug description:
  ccbo.cpp:
  line:288

  int CCBO::ctcl_savenote(int  y,int m, int d ,QString textedit)
  {
      QString QueryStr;
      QString InsertStr;
      QString UpdateStr;
      QString note;
      QString insert;
      QueryStr=QString("select note from cnote where y=%1 and m=%2 and d=%3").arg(y).arg(m).arg(d);
      note=ctcl_common_query("cnote",QueryStr);
      if(textedit.isEmpty()&&note.isEmpty())
          return 0;
      if(note.isEmpty())
      {   InsertStr=QString("INSERT INTO cnote(y,m,d,note) VALUES(%1,%2,%3,'%4');").arg(y).arg(m).arg(d).arg(textedit);    
          ctcl_common_query("cnote",InsertStr);
      }else{
          UpdateStr=QString("UPDATE cnote SET note = '%4' where y=%1 and m=%2 and d=%3").arg(y).arg(m).arg(d).arg(textedit);        
          ctcl_common_query("cnote",UpdateStr);
     }
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/chinese-calendar/+bug/1171079/+subscriptions


References