Skip to content

Conversation

sobjornstad
Copy link
Contributor

Created a pull request for @m0ntana's patch here, since they have not responded to that request. The fix worked for me as well, would love to get it into upstream so I don't have to build ksnip myself everywhere I want this to work :)

Could not find @m0ntana's email to credit them, please edit committer metadata if you can

@m0ntana
Copy link

m0ntana commented Aug 19, 2024

@sobjornstad no need to credit me, thanks.

Copy link
Member

@DamirPorobic DamirPorobic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, a few minor coding style changes if you could adjust them please.

attachDetach();
return create();
}
if(this->create())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add braces around this return.
Is "this->" here required, I think can be omitted.

}
return false;
if(mSingular->attach())
mSingular->detach();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Braces


#include <iostream>
#include <unistd.h>
#include <sys/types.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like some of those includes are duplicated, can be cleaned up a bit.

@DamirPorobic DamirPorobic merged commit f9c13f0 into ksnip:master Oct 15, 2024
@DamirPorobic
Copy link
Member

This doesn't work on Windows, actually, it breaks the windows build.

DamirPorobic added a commit that referenced this pull request Oct 28, 2024
DamirPorobic added a commit that referenced this pull request Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants