Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #6 from UniQP/master
Removed trailing whitespaces and fixed help text
  • Loading branch information
regehr committed Jan 27, 2015
2 parents e3fc659 + bf8be8c commit 0593229
Show file tree
Hide file tree
Showing 117 changed files with 2,378 additions and 2,378 deletions.
2 changes: 1 addition & 1 deletion src/AbsExtension.cpp
Expand Up @@ -62,7 +62,7 @@ FunctionInvocation*
AbsExtension::MakeFuncInvocation(Function *func, std::vector<ExtensionValue *> &values)
{
FunctionInvocationUser *fi = new FunctionInvocationUser(func, true, NULL);

vector<ExtensionValue *>::iterator i;
for (i = values.begin(); i != values.end(); ++i) {
assert(*i);
Expand Down
6 changes: 3 additions & 3 deletions src/AbsRndNumGenerator.cpp
Expand Up @@ -70,10 +70,10 @@ AbsRndNumGenerator::make_rndnum_generator(RNDNUM_GENERATOR impl, const unsigned

AbsRndNumGenerator::seedrand(seed);
switch (impl) {
case rDefaultRndNumGenerator:
case rDefaultRndNumGenerator:
rImpl = DefaultRndNumGenerator::make_rndnum_generator(seed);
break;
case rDFSRndNumGenerator:
case rDFSRndNumGenerator:
rImpl = DFSRndNumGenerator::make_rndnum_generator();
break;
case rSimpleDeltaRndNumGenerator:
Expand Down Expand Up @@ -119,7 +119,7 @@ AbsRndNumGenerator::rnd_shuffle(unsigned int n)
}
#endif

unsigned long
unsigned long
AbsRndNumGenerator::genrand(void)
{
return lrand48();
Expand Down
8 changes: 4 additions & 4 deletions src/AbsRndNumGenerator.h
Expand Up @@ -44,7 +44,7 @@ enum RNDNUM_GENERATOR {
#define MAX_RNDNUM_GENERATOR (rSimpleDeltaRndNumGenerator+1)

// I could make AbsRndNumGenerator not pure, but want to force each subclass implement
// it's own member functions, in case of forgetting something.
// it's own member functions, in case of forgetting something.
class AbsRndNumGenerator
{
public:
Expand All @@ -69,14 +69,14 @@ class AbsRndNumGenerator
virtual unsigned int rnd_upto(const unsigned int n, const Filter *f = NULL, const std::string *where = NULL) = 0;

virtual bool rnd_flipcoin(const unsigned int p, const Filter *f = NULL, const std::string *where = NULL) = 0;

virtual std::string RandomHexDigits( int num ) = 0;

virtual std::string RandomDigits( int num ) = 0;

// Although it's not a good idea to return the kind of different implementation,
// Although it's not a good idea to return the kind of different implementation,
// it's useful for error_handler. Basically we don't want to make the code
// depend on the kind, use polymorphism instead.
// depend on the kind, use polymorphism instead.
virtual enum RNDNUM_GENERATOR kind() = 0;

virtual ~AbsRndNumGenerator(void);
Expand Down

0 comments on commit 0593229

Please sign in to comment.