Fixed: binary not installed
Removed unused variables and fixed some other compiler warnings git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@163 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -97,12 +97,11 @@ void KeepassEntryView::OnItemsChanged(){
|
||||
}
|
||||
|
||||
bool sortSearchResultsLessThan(const IEntryHandle* a, const IEntryHandle* b){
|
||||
int indexA=0;
|
||||
int indexB=0;
|
||||
for(indexA;indexA<pItems->size();indexA++){
|
||||
int indexA, indexB;
|
||||
for(indexA=0;indexA<pItems->size();indexA++){
|
||||
if((*pItems)[indexA]->EntryHandle==a)break;
|
||||
}
|
||||
for(indexB;indexB<pItems->size();indexB++){
|
||||
for(indexB=0;indexB<pItems->size();indexB++){
|
||||
if((*pItems)[indexB]->EntryHandle==b)break;
|
||||
}
|
||||
return pEntryView->indexOfTopLevelItem((*pItems)[indexA])<pEntryView->indexOfTopLevelItem((*pItems)[indexB]);
|
||||
|
||||
@@ -55,7 +55,7 @@ void WaitAnimationWidget::stop(){
|
||||
|
||||
void WaitAnimationWidget::setRefreshRate(int fps){
|
||||
DiffAngle=1.0f/((60.0f/(float)speed)*(float)fps);
|
||||
timer.setInterval((1.0f/(float)fps)*1000.0f);
|
||||
timer.setInterval((int) ((1.0f/(float)fps)*1000.0f));
|
||||
}
|
||||
|
||||
void WaitAnimationWidget::refreshAnimation(){
|
||||
|
||||
@@ -60,7 +60,7 @@ int KpxBookmarks::add(const QString& Title,const QString& Path){
|
||||
return Bookmarks.size()-1;
|
||||
}
|
||||
|
||||
bool KpxBookmarks::save(){
|
||||
void KpxBookmarks::save(){
|
||||
for (int i=0;i<count();i++){
|
||||
config->settings.setValue( QString("Bookmarks/%1/Title").arg(i+1), Bookmarks[i].Title );
|
||||
config->settings.setValue( QString("Bookmarks/%1/Path").arg(i+1), Bookmarks[i].Path );
|
||||
|
||||
@@ -33,7 +33,7 @@ class KpxBookmarks {
|
||||
static QString title(int Index);
|
||||
static QString path(int Index);
|
||||
private:
|
||||
static bool save();
|
||||
static void save();
|
||||
class BookmarkEntry {
|
||||
public:
|
||||
QString Title;
|
||||
|
||||
Reference in New Issue
Block a user