Gui: PR6497 move return statement to new line
This commit is contained in:
@@ -360,11 +360,13 @@ void SelectionView::deselect(void)
|
||||
|
||||
void SelectionView::toggleSelect(QListWidgetItem* item)
|
||||
{
|
||||
if (!item) return;
|
||||
if (!item)
|
||||
return;
|
||||
std::string name = item->text().toLatin1().constData();
|
||||
char *docname = &name.at(0);
|
||||
char *objname = std::strchr(docname,'#');
|
||||
if(!objname) return;
|
||||
if(!objname)
|
||||
return;
|
||||
*objname++ = 0;
|
||||
char *subname = std::strchr(objname,'.');
|
||||
if(subname) {
|
||||
@@ -398,11 +400,13 @@ void SelectionView::toggleSelect(QListWidgetItem* item)
|
||||
|
||||
void SelectionView::preselect(QListWidgetItem* item)
|
||||
{
|
||||
if (!item) return;
|
||||
if (!item)
|
||||
return;
|
||||
std::string name = item->text().toLatin1().constData();
|
||||
char *docname = &name.at(0);
|
||||
char *objname = std::strchr(docname,'#');
|
||||
if(!objname) return;
|
||||
if(!objname)
|
||||
return;
|
||||
*objname++ = 0;
|
||||
char *subname = std::strchr(objname,'.');
|
||||
if(subname) {
|
||||
|
||||
Reference in New Issue
Block a user