ubuntukylin-members team mailing list archive
-
ubuntukylin-members team
-
Mailing list archive
-
Message #00463
[Bug 1171079] Re: control reaches end of non-void function
** Changed in: chinese-calendar
Milestone: 0.7.7 => None
--
You received this bug notification because you are a member of
UbuntuKylin 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:
In Progress
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()&¬e.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